1
0
forked from VimPlug/jedi

'.NAME' lookups.

This commit is contained in:
Dave Halter
2014-10-22 02:33:35 +02:00
parent 34f3ea6973
commit e2a07752fd

View File

@@ -194,7 +194,6 @@ class Evaluator(object):
# The implicit tuple in statements. # The implicit tuple in statements.
return [iterable.Array(self, element, pr.Array.TUPLE)] return [iterable.Array(self, element, pr.Array.TUPLE)]
else: else:
print(element)
left, operator, right = element.children left, operator, right = element.children
return precedence.calculate(self, self.eval_element(left), operator, return precedence.calculate(self, self.eval_element(left), operator,
self.eval_element(right)) self.eval_element(right))
@@ -231,7 +230,7 @@ class Evaluator(object):
for typ in types: for typ in types:
debug.dbg('_eval_trailer: %s in scope %s', trailer, typ) debug.dbg('_eval_trailer: %s in scope %s', trailer, typ)
if trailer_op == '.': if trailer_op == '.':
raise NotImplementedError new_types += self.find_types(typ, node)
elif trailer_op == '(': elif trailer_op == '(':
new_types += self.execute(typ, node) new_types += self.execute(typ, node)
elif trailer_op == '[': elif trailer_op == '[':