Closed kamahen closed 6 years ago
In pykythe/test_data/py3_test_grammar.py, if test_main is changed as follows:
pykythe/test_data/py3_test_grammar.py
test_main
def test_main(): #- @TokenTests ref T? run_unittest(TokenTests, GrammarTests)
then verifier outputs the following, which is wrong:
verifier
T: EVar(0x00000000022b4900 = App(vname, (test_data.py3_test_grammar.test_main.<local>.TokenTests, test-corpus, test-root, "", python)))
The problem is that processing for a funcdef (and also classdef) doesn't first do a pass for all the "bindings" inside it.
The code for looking up names was completely missing. This has been fixed in Fix name lookups + reorder classes in kythe.py
In
pykythe/test_data/py3_test_grammar.py
, iftest_main
is changed as follows:then
verifier
outputs the following, which is wrong:The problem is that processing for a funcdef (and also classdef) doesn't first do a pass for all the "bindings" inside it.