Python: fix definition of LocalSourceNode

and typo
This commit is contained in:
yoff
2022-06-20 08:48:33 +00:00
committed by GitHub
parent 8b9915e372
commit 8a2125353d
2 changed files with 2 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ ReturnKind getReturnValueKind() { any() }
/**
* All definitions in this module are required by the shared implementation
* (for source/sink interpretation), but they are unused for Ruby, where
* (for source/sink interpretation), but they are unused for Python, where
* we rely on API graphs instead.
*/
private module UnusedSourceSinkInterpretation {

View File

@@ -36,7 +36,7 @@ class LocalSourceNode extends Node {
LocalSourceNode() {
Stages::DataFlow::ref() and
this instanceof ExprNode and
not simpleLocalFlowStep(_, this)
not simpleLocalFlowStepForTypetracking(_, this)
or
// We include all module variable nodes, as these act as stepping stones between writes and
// reads of global variables. Without them, type tracking based on `LocalSourceNode`s would be