We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
fastTC
AstNode::getParent
1 parent 262a74d commit d39b0fdCopy full SHA for d39b0fd
ruby/ql/lib/codeql/ruby/ast/internal/Synthesis.qll
@@ -132,7 +132,10 @@ int desugarLevel(AstNode n) { result = count(Desugared desugared | n = desugared
132
* Holds if `n` appears in a context that is desugared. That is, a
133
* transitive, reflexive parent of `n` is a desugared node.
134
*/
135
-predicate isInDesugaredContext(AstNode n) { n = any(AstNode sugar).getDesugared().getAChild*() }
+predicate isInDesugaredContext(AstNode n) {
136
+ n = any(AstNode sugar).getDesugared() or
137
+ n = any(AstNode mid | isInDesugaredContext(mid)).getAChild()
138
+}
139
140
/**
141
* Holds if `n` is a node that only exists as a result of desugaring some
0 commit comments