Skip to content

Commit 9a0c26b

Browse files
committed
unified: Use inherited leaf content for super expressions
1 parent a4de84a commit 9a0c26b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • unified/extractor/src/languages/swift

‎unified/extractor/src/languages/swift/swift.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use codeql_extractor::extractor::desugaring;
2-
use yeast::{ConcreteDesugarer, DesugaringConfig, Rule, rule, tree};
2+
use yeast::{ConcreteDesugarer, DesugaringConfig, Rule, tree};
33

44
/// User context propagated from outer rules down to the inner rules that
55
/// emit the corresponding output declarations, so that each emitted node
@@ -1221,7 +1221,7 @@ fn translation_rules() -> Vec<Rule<SwiftContext>> {
12211221
),
12221222
// Preserve the `super` keyword as a dedicated expression, normally used
12231223
// as the base of a member access (`super.foo`).
1224-
rule!((superExpr superKeyword: @@keyword) => (super_expr #{keyword})),
1224+
rule!((superExpr) => (super_expr)),
12251225
// Type expressions. A generic type applied with explicit arguments
12261226
// (`Set<Int>`) becomes a `generic_type_expr` whose `base` is the type
12271227
// name and whose `type_argument`s are the (structured) arguments — the

0 commit comments

Comments
 (0)