mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
Python: fix definition of LocalSourceNode
and typo
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user