Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a237f69 commit aa54e4bCopy full SHA for aa54e4b
2 files changed
swift/ql/lib/codeql/swift/printast/PrintAstNode.qll
@@ -141,3 +141,25 @@ class PrintExpr extends PrintLocatable {
141
child = TConversionContainer(ast)
142
}
143
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
163
+ key = "getInterfaceType()" and result = ast.getInterfaceType().toString()
164
165
0 commit comments