1
0
forked from VimPlug/jedi

A couple of changes:

- parser.representation now uses ArrayStmt and ExprStatement to be able to differentiate easily with isinstance.
- NameParts are temporarily allowed again as InstanceElements.
This commit is contained in:
Dave Halter
2014-09-24 15:21:56 +02:00
parent 0a65eea2cf
commit f300e63dae
2 changed files with 15 additions and 6 deletions

View File

@@ -246,9 +246,9 @@ def get_instance_el(evaluator, instance, var, is_class_var=False):
"""
if isinstance(var, (Instance, compiled.CompiledObject, pr.Operator, Token,
pr.Module, FunctionExecution, pr.NamePart)):
if isinstance(var, pr.NamePart):
if isinstance(var, pr.NamePart) and False:
# TODO temp solution, remove later, NameParts should never get
# here.
# here?
par = get_instance_el(evaluator, instance, var.parent, is_class_var)
return helpers.FakeName(unicode(var), par, var.start_pos)
return var