1
0
forked from VimPlug/jedi

Make goto_definitions a lot simpler.

This commit is contained in:
Dave Halter
2016-06-11 23:13:04 +02:00
parent 9930ab5056
commit c82691a12b
12 changed files with 107 additions and 80 deletions

View File

@@ -125,6 +125,9 @@ f
# -----------------
# unnessecary braces
# -----------------
a = (1)
#? int()
a
#? int()
(1)
#? int()

View File

@@ -131,6 +131,8 @@ A().addition
A().addition = None
#? 8 int()
A(1).addition = None
#? 1 A
A(1).addition = None
a = A()
#? 8 int()
a.addition = None

View File

@@ -6,6 +6,9 @@ Fallback to callee definition when definition not found.
"""Parenthesis closed at next line."""
# Ignore these definitions for a little while, not sure if we really want them.
# python <= 2.7
#? isinstance
isinstance(
)

View File

@@ -202,8 +202,9 @@ default_function()
def a():
l = 3
def func_b():
#? str()
l = ''
#? str()
l
#? ['func_b']
func_b
#? int()

View File

@@ -75,6 +75,7 @@ def scope_from_import_variable():
without the use of ``sys.modules`` modifications (e.g. ``os.path`` see also
github issue #213 for clarification.
"""
a = 3
#?
from import_tree.mod2.fake import a
#?

View File

@@ -102,7 +102,7 @@ if isi
try:
except TypeError:
#? str()
""
str()
def break(): pass
# wrong ternary expression