File tree Expand file tree Collapse file tree 2 files changed +432
-0
lines changed
lib/codeql/swift/printast Expand file tree Collapse file tree 2 files changed +432
-0
lines changed Original file line number Diff line number Diff line change @@ -141,3 +141,25 @@ class PrintExpr extends PrintLocatable {
141141 child = TConversionContainer ( ast )
142142 }
143143}
144+
145+ /**
146+ * A specialization of graph node for `VarDecl`, to add typing information.
147+ */
148+ class PrintVarDecl extends PrintLocatable {
149+ override VarDecl ast ;
150+
151+ override string getProperty ( string key ) {
152+ key = "getType()" and result = ast .getType ( ) .toString ( )
153+ }
154+ }
155+
156+ /**
157+ * A specialization of graph node for `AbstractFunctionDecl`, to add typing information.
158+ */
159+ class PrintCallable extends PrintLocatable {
160+ override AbstractFunctionDecl ast ;
161+
162+ override string getProperty ( string key ) {
163+ key = "getInterfaceType()" and result = ast .getInterfaceType ( ) .toString ( )
164+ }
165+ }
You can’t perform that action at this time.
0 commit comments