mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-09 07:14:48 +08:00
another problem with the ouput of vim (parent returned NotImplemented)
This commit is contained in:
@@ -544,7 +544,10 @@ class Array(object):
|
|||||||
return follow_call_list(scope, values)
|
return follow_call_list(scope, values)
|
||||||
|
|
||||||
def get_defined_names(self):
|
def get_defined_names(self):
|
||||||
""" This method generates all ArrayElements for one parsing.Array. """
|
"""
|
||||||
|
This method generates all ArrayElements for one parsing.Array.
|
||||||
|
It returns e.g. for a list: append, pop, ...
|
||||||
|
"""
|
||||||
# array.type is a string with the type, e.g. 'list'
|
# array.type is a string with the type, e.g. 'list'
|
||||||
scope = get_scopes_for_name(builtin.Builtin.scope, self._array.type)[0]
|
scope = get_scopes_for_name(builtin.Builtin.scope, self._array.type)[0]
|
||||||
names = scope.get_defined_names()
|
names = scope.get_defined_names()
|
||||||
@@ -564,7 +567,7 @@ class ArrayElement(object):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def parent(self):
|
def parent(self):
|
||||||
raise NotImplementedError("This shouldn't happen")
|
return self.name.parent
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def names(self):
|
def names(self):
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# test comment
|
# test comment
|
||||||
|
|
||||||
import datetime, os, sys, tokenize
|
import datetime, os, sys, tokenize, re
|
||||||
#from token import *
|
#from token import *
|
||||||
from time import sleep
|
from time import sleep
|
||||||
from token import OP as OP_TEST, INDENT as INDENT_TEST
|
from token import OP as OP_TEST, INDENT as INDENT_TEST
|
||||||
@@ -172,10 +172,9 @@ def nexti(iterator, default=list):
|
|||||||
#return default
|
#return default
|
||||||
|
|
||||||
|
|
||||||
#from temp import *
|
|
||||||
|
|
||||||
|
|
||||||
#exe[0].
|
#exe[0].
|
||||||
#exe[4]['d']
|
#exe[4]['d']
|
||||||
a = next(gen_exe)
|
a = next(gen_exe)
|
||||||
a
|
def ret():
|
||||||
|
r = []
|
||||||
|
return r.
|
||||||
|
|||||||
Reference in New Issue
Block a user