File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed
src/experimental/dataflow/internal
test/experimental/dataflow/typetracking Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ Node importModule(string name) {
7070 // Because named imports are modelled as `AttrRead`s, the statement `from foo import bar as baz`
7171 // is interpreted as if it was an assignment `baz = foo.bar`, which means `baz` gets tracked as a
7272 // reference to `foo.bar`, as desired.
73- result .asCfgNode ( ) .getNode ( ) = any ( ImportExpr i | i .getAnImportedModuleName ( ) = name )
73+ result .asCfgNode ( ) .getNode ( ) = any ( ImportExpr i | i .getName ( ) = name )
7474}
7575
7676/**
Original file line number Diff line number Diff line change 11module_tracker
22| import_as_attr.py:1:6:1:11 | ControlFlowNode for ImportExpr |
3- | import_as_attr_dotted.py:0:0:0:0 | ModuleVariableNode for Global Variable attr_ref in Module import_as_attr_dotted |
4- | import_as_attr_dotted.py:1:8:1:18 | ControlFlowNode for ImportExpr |
5- | import_as_attr_dotted.py:1:23:1:30 | GSSA Variable attr_ref |
6- | import_as_attr_dotted.py:3:1:3:1 | GSSA Variable x |
7- | import_as_attr_dotted.py:3:5:3:12 | ControlFlowNode for attr_ref |
8- | import_as_attr_dotted.py:6:5:6:5 | SSA variable y |
9- | import_as_attr_dotted.py:6:9:6:16 | ControlFlowNode for attr_ref |
103module_attr_tracker
114| import_as_attr.py:0:0:0:0 | ModuleVariableNode for Global Variable attr_ref in Module import_as_attr |
125| import_as_attr.py:1:20:1:35 | ControlFlowNode for ImportMember |
You can’t perform that action at this time.
0 commit comments