Skip to content

Commit 9815192

Browse files
committed
Python: exclude CaptureNodes
1 parent 682f6e5 commit 9815192

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ module TrackedTest implements TestSig {
2626
not e.getLocation().getStartLine() = 0 and
2727
// We do not wish to annotate scope entry definitions,
2828
// as they do not appear in the source code.
29-
// not e.asVar() instanceof ScopeEntryDefinition and
3029
not e.asCfgNode() = any(ScopeEntryDefinition def).getDefiningNode() and
30+
// ...same for CaptureNodes
31+
not e instanceof DataFlow::CaptureNode and
3132
tag = "tracked" and
3233
location = e.getLocation() and
3334
value = t.getAttr() and

0 commit comments

Comments
 (0)