File tree Expand file tree Collapse file tree 2 files changed +641
-110
lines changed
lib/codeql/swift/controlflow/internal
test/library-tests/controlflow/graph Expand file tree Collapse file tree 2 files changed +641
-110
lines changed Original file line number Diff line number Diff line change @@ -908,6 +908,8 @@ module Exprs {
908
908
}
909
909
}
910
910
911
+ private class TypeTree extends LeafTree instanceof TypeExpr { }
912
+
911
913
private class DynamicTypeTree extends StandardPostOrderTree instanceof DynamicTypeExpr {
912
914
final override ControlFlowTree getChildElement ( int i ) {
913
915
result = super .getBaseExpr ( ) .getFullyConverted ( ) and i = 0
@@ -951,7 +953,13 @@ module Exprs {
951
953
}
952
954
}
953
955
954
- private class DeclRefExprTree extends LeafTree , DeclRefExpr { }
956
+ private class DeclRefExprTree extends LeafTree instanceof DeclRefExpr { }
957
+
958
+ private class MemberRefTree extends StandardPostOrderTree instanceof MemberRefExpr {
959
+ final override AstNode getChildElement ( int i ) {
960
+ result = super .getBaseExpr ( ) .getFullyConverted ( ) and i = 0
961
+ }
962
+ }
955
963
956
964
private class ApplyExprTree extends StandardPostOrderTree instanceof ApplyExpr {
957
965
ApplyExprTree ( ) {
@@ -969,6 +977,15 @@ module Exprs {
969
977
}
970
978
}
971
979
980
+ private class DefaultArgumentTree extends LeafTree instanceof DefaultArgumentExpr { }
981
+
982
+ private class ForceValueTree extends StandardPostOrderTree instanceof ForceValueExpr {
983
+ override AstNode getChildElement ( int i ) {
984
+ i = 0 and
985
+ result = super .getSubExpr ( ) .getFullyConverted ( )
986
+ }
987
+ }
988
+
972
989
private class LogicalAndTree extends PostOrderTree , LogicalAndExpr {
973
990
final override predicate propagatesAbnormal ( AstNode child ) {
974
991
child = this .getAnOperand ( ) .getFullyConverted ( )
You can’t perform that action at this time.
0 commit comments