There was an error while loading. Please reload this page.
1 parent e87bf57 commit fdccd5dCopy full SHA for fdccd5d
1 file changed
ql/src/codeql_ruby/AST.qll
@@ -64,4 +64,16 @@ class AstNode extends TAstNode {
64
*/
65
cached
66
AstNode getAChild(string pred) { none() }
67
+
68
+ /**
69
+ * Holds if this node was synthesized to represent an implicit AST node not
70
+ * present in the source code. In the following example method call, the
71
+ * receiver is an implicit `self` reference, for which there is a synthesized
72
+ * `Self` node.
73
+ *
74
+ * ```rb
75
+ * foo(123)
76
+ * ```
77
+ */
78
+ predicate isSynthesized() { this instanceof TImplicitSelf }
79
}
0 commit comments