Skip to content

Commit 0b2d2ce

Browse files
committed
Unified: Remove redundant declReferenceExpr rule
This one is essentially identical to the rule that directly follows it, so we can just get rid of it.
1 parent 54ed04b commit 0b2d2ce

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

  • unified/extractor/src/languages/swift

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,6 @@ fn translation_rules() -> Vec<Rule<SwiftContext>> {
206206
=>
207207
(unsupported_node)
208208
),
209-
rule!((declReferenceExpr baseName: (identifier) @@name) => expr {
210-
tree!((identifier #{name}))
211-
}),
212209
// A bare name reference (`x`), and an operator used as a value (`+` in
213210
// `reduce(0, +)`), are both `declReferenceExpr`; its `baseName` is the
214211
// referenced identifier / operator symbol.

0 commit comments

Comments
 (0)