Skip to content

Commit a651eec

Browse files
committed
Python: exclude CaptureNodes
1 parent 25e6f6b commit a651eec

File tree

1 file changed

+2
-0
lines changed
  • python/ql/test/experimental/dataflow/typetracking

1 file changed

+2
-0
lines changed

python/ql/test/experimental/dataflow/typetracking/tracked.ql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ module TrackedTest implements TestSig {
2727
// We do not wish to annotate scope entry definitions,
2828
// as they do not appear in the source code.
2929
not e.asCfgNode() = any(ScopeEntryDefinition def).getDefiningNode() and
30+
// ...same for CaptureNodes
31+
not e instanceof DataFlow::CaptureNode and
3032
tag = "tracked" and
3133
location = e.getLocation() and
3234
value = t.getAttr() and

0 commit comments

Comments
 (0)