Skip to content

Commit 37f3ea1

Browse files
authored
Merge pull request #17474 from github/redsun82/swift-cfg-order-disambuigation
Swift: tentative fix to Cfg disambuigation
2 parents cf60310 + d74dd21 commit 37f3ea1

File tree

1 file changed

+1
-1
lines changed
  • swift/ql/test/library-tests/controlflow/graph

1 file changed

+1
-1
lines changed

swift/ql/test/library-tests/controlflow/graph/Cfg.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class MyRelevantNode extends ControlFlowNode {
1111
private AstNode asAstNode() { result = this.getAstNode().asAstNode() }
1212

1313
string getOrderDisambiguation() {
14-
result = this.asAstNode().getPrimaryQlClasses()
14+
result = concat([this.asAstNode().getAPrimaryQlClass(), this.asAstNode().toString()], ",")
1515
or
1616
not exists(this.asAstNode()) and result = ""
1717
}

0 commit comments

Comments
 (0)