mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
Ruby: fix typo in internal predicate name
This commit is contained in:
@@ -132,7 +132,7 @@ int desugarLevel(AstNode n) { result = count(Desugared desugared | n = desugared
|
||||
* Holds if `n` appears in a context that is desugared. That is, a
|
||||
* transitive, reflexive parent of `n` is a desugared node.
|
||||
*/
|
||||
predicate isInDesugeredContext(AstNode n) { n = any(AstNode sugar).getDesugared().getAChild*() }
|
||||
predicate isInDesugaredContext(AstNode n) { n = any(AstNode sugar).getDesugared().getAChild*() }
|
||||
|
||||
/**
|
||||
* Holds if `n` is a node that only exists as a result of desugaring some
|
||||
@@ -141,7 +141,7 @@ predicate isInDesugeredContext(AstNode n) { n = any(AstNode sugar).getDesugared(
|
||||
predicate isDesugarNode(AstNode n) {
|
||||
n = any(AstNode sugar).getDesugared()
|
||||
or
|
||||
isInDesugeredContext(n) and
|
||||
isInDesugaredContext(n) and
|
||||
forall(AstNode parent | parent = n.getParent() | parent.isSynthesized())
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import codeql.ruby.ast.internal.Synthesis
|
||||
|
||||
class DesugarPrintAstConfiguration extends PrintAstConfiguration {
|
||||
override predicate shouldPrintNode(AstNode n) {
|
||||
isInDesugeredContext(n)
|
||||
isInDesugaredContext(n)
|
||||
or
|
||||
exists(n.getDesugared())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user