mirror of
https://github.com/github/codeql.git
synced 2025-12-26 21:56:39 +01:00
CFG: hide all non-AstNodes
This commit is contained in:
@@ -206,24 +206,9 @@ private predicate succImpl(AstNode pred, AstNode succ, Completion c) {
|
||||
}
|
||||
|
||||
private predicate isHidden(ControlFlowTree t) {
|
||||
not t instanceof ASTInternal::AstNode::Range
|
||||
or
|
||||
t.isHidden()
|
||||
or
|
||||
t = any(Method m).getName()
|
||||
or
|
||||
t = any(Class m).getName()
|
||||
or
|
||||
t = any(Module m).getName()
|
||||
or
|
||||
t = any(ScopeResolution m).getName()
|
||||
or
|
||||
t = any(SingletonMethod m).getName()
|
||||
or
|
||||
t = any(Call c).getMethod() and
|
||||
not t instanceof ScopeResolution
|
||||
or
|
||||
t instanceof RestAssignment
|
||||
or
|
||||
t instanceof Superclass
|
||||
}
|
||||
|
||||
private predicate succImplIfHidden(AstNode pred, AstNode succ) {
|
||||
|
||||
Reference in New Issue
Block a user