Skip to content

Commit 274d942

Browse files
committed
Rust: Cache getEnclosingCfgScope
1 parent 0329231 commit 274d942

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rust/ql/lib/codeql/rust/elements/internal/AstNodeImpl.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ module Impl {
4646
}
4747

4848
/** Gets the CFG scope that encloses this node, if any. */
49+
cached
4950
CfgScope getEnclosingCfgScope() {
5051
exists(AstNode p | p = this.getParentNode() |
5152
result = p

0 commit comments

Comments
 (0)