1
0
forked from VimPlug/jedi

remove NoErrorTokenizer dependency for all but the fast parsers

This commit is contained in:
Dave Halter
2014-02-24 10:31:15 +01:00
parent 553ff66c8b
commit 9257062910
3 changed files with 25 additions and 10 deletions
+3 -3
View File
@@ -381,7 +381,7 @@ def get_names_of_scope(evaluator, scope, position=None, star_search=True, includ
... '''))
>>> scope = parser.module.subscopes[0]
>>> scope
<Function: func@3-4>
<Function: func@3-5>
`get_names_of_scope` is a generator. First it yields names from most inner
scope.
@@ -389,13 +389,13 @@ def get_names_of_scope(evaluator, scope, position=None, star_search=True, includ
>>> from jedi.evaluate import Evaluator
>>> pairs = list(get_names_of_scope(Evaluator(), scope))
>>> pairs[0]
(<Function: func@3-4>, [<Name: y@4,4>])
(<Function: func@3-5>, [<Name: y@4,4>])
Then it yield the names from one level outer scope. For this example, this
is the most outer scope.
>>> pairs[1]
(<SubModule: None@1-4>, [<Name: x@2,0>, <Name: func@3,4>])
(<SubModule: None@1-5>, [<Name: x@2,0>, <Name: func@3,4>])
Finally, it yields names from builtin, if `include_builtin` is
true (default).