mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
cache AstNode::getParent
This commit is contained in:
@@ -118,6 +118,7 @@ class ASTNode extends @ast_node, NodeInStmtContainer {
|
||||
int getNumChildStmt() { result = count(getAChildStmt()) }
|
||||
|
||||
/** Gets the parent node of this node, if any. */
|
||||
cached
|
||||
ASTNode getParent() { this = result.getAChild() }
|
||||
|
||||
/** Gets the first control flow node belonging to this syntactic entity. */
|
||||
|
||||
Reference in New Issue
Block a user