File tree 1 file changed +4
-2
lines changed
swift/ql/lib/codeql/swift/controlflow/internal
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ module CfgScope {
60
60
private class KeyPathScope extends Range_ instanceof KeyPathExpr {
61
61
KeyPathControlFlowTree tree ;
62
62
63
- KeyPathScope ( ) { tree .asAstNode ( ) = this }
63
+ KeyPathScope ( ) { tree .getAst ( ) = this }
64
64
65
65
final override predicate entry ( ControlFlowElement first ) { first ( tree , first ) }
66
66
@@ -84,6 +84,8 @@ module CfgScope {
84
84
override ControlFlowElement getChildNode ( int i ) {
85
85
result .asAstNode ( ) = super .getAst ( ) .getComponent ( i )
86
86
}
87
+
88
+ KeyPathExpr getAst ( ) { result = super .getAst ( ) }
87
89
}
88
90
}
89
91
@@ -1663,7 +1665,7 @@ module Exprs {
1663
1665
}
1664
1666
}
1665
1667
1666
- private class NilCoalescingTestTree extends LeafTree instanceof NilCoalescingElement {
1668
+ private class NilCoalescingTestTree extends LeafTree instanceof NilCoalescingElement {
1667
1669
NilCoalescingExpr getAst ( ) { result = super .getAst ( ) }
1668
1670
}
1669
1671
You can’t perform that action at this time.
0 commit comments