File tree Expand file tree Collapse file tree 3 files changed +448
-105
lines changed
lib/codeql/swift/controlflow/internal
test/library-tests/controlflow/graph Expand file tree Collapse file tree 3 files changed +448
-105
lines changed Original file line number Diff line number Diff line change @@ -946,6 +946,37 @@ module Decls {
946
946
}
947
947
}
948
948
949
+ /**
950
+ * The control-flow of a type declaration. This is necessary to skip past local type
951
+ * declarations that occur inside bodies like in:
952
+ * ```swift
953
+ * func foo() -> Int {
954
+ * let x = 42
955
+ * class C {}
956
+ * return x
957
+ * }
958
+ * ```
959
+ */
960
+ private class TypeDeclTree extends AstLeafTree {
961
+ override TypeDecl ast ;
962
+ }
963
+
964
+ /**
965
+ * The control-flow of a function declaration. This is necessary to skip past local function
966
+ * declarations that occur inside bodies like in:
967
+ * ```swift
968
+ * func foo() -> Int {
969
+ * let x = 42
970
+ * func bar() { ... }
971
+ * return x
972
+ * }
973
+ * ```
974
+ */
975
+ private class AbstractFunctionDeclTree extends AstLeafTree {
976
+ override AbstractFunctionDecl ast ;
977
+ }
978
+
979
+ /** The control-flow of a function declaration body. */
949
980
class FuncDeclTree extends StandardPreOrderTree , TFuncDeclElement {
950
981
AbstractFunctionDecl ast ;
951
982
You can’t perform that action at this time.
0 commit comments