mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
python: rewrite not away
A `LocalSourceNode` is either a `ModuleVariableNode` or an `ExprNode`.
This commit is contained in:
@@ -721,7 +721,7 @@ module API {
|
||||
DataFlow::LocalSourceNode trackUseNode(DataFlow::LocalSourceNode src) {
|
||||
Stages::TypeTracking::ref() and
|
||||
result = trackUseNode(src, DataFlow::TypeTracker::end()) and
|
||||
not result instanceof DataFlow::ModuleVariableNode
|
||||
result instanceof DataFlow::ExprNode
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user