Resolve PyReferenceImpl refs to all outer definitions in the current file

This applies to all outer definitions except imports where we resolve
only to the latest imports as we used to do. This is required for
detecting and optimizing unused imports and adding imports during
refactorings.

The implementation of ResolveProcessor has been rewritten as
PyResolveProcessor.
This commit is contained in:
Andrey Vlasovskikh
2016-01-20 13:14:26 +03:00
parent f2d18a69bd
commit 359b13a62f
25 changed files with 419 additions and 420 deletions
@@ -1,5 +1,4 @@
import p1
import p1.m1
from p1 import m1
from p1.m1 import foo