Debian Codegraph @

test/completion/thirdparty/jedi_.py

raw symbols SCIP
1
2 from jedi import functions, inference, parsing
3
4 el = functions.complete()[0]
5 #? ['description']
6 el.description
7
8 #? str()
9 el.description
10
11
12 scopes, path, dot, like = \
13 api._prepare_goto(source, row, column, path, True)
14
15 # has problems with that (sometimes) very deep nesting.
16 #? set()
17 el = scopes
18
19 # get_names_for_scope is also recursion stuff
20 #? tuple()
21 el = list(inference.get_names_for_scope())[0]
22
23 #? int() parsing.Module()
24 el = list(inference.get_names_for_scope(1))[0][0]
25 #? parsing.Module()
26 el = list(inference.get_names_for_scope())[0][0]
27
28 #? list()
29 el = list(inference.get_names_for_scope(1))[0][1]
30 #? list()
31 el = list(inference.get_names_for_scope())[0][1]
32
33 #? list()
34 parsing.Scope((0,0)).get_set_vars()
35 #? parsing.Import() parsing.Name()
36 parsing.Scope((0,0)).get_set_vars()[0]
37 # TODO access parent is not possible, because that is not set in the class
38 ## parsing.Class()
39 parsing.Scope((0,0)).get_set_vars()[0].parent
40
41 #? parsing.Import() parsing.Name()
42 el = list(inference.get_names_for_scope())[0][1][0]
43
44 #? inference.Array() inference.Class() inference.Function() inference.Instance()
45 list(inference.follow_call())[0]
46
47 # With the right recursion settings, this should be possible (and maybe more):
48 # Array Class Function Generator Instance Module
49 # However, this was produced with the recursion settings 10/350/10000, and
50 # lasted 18.5 seconds. So we just have to be content with the results.
51 #? inference.Class() inference.Function()
52 inference.get_scopes_for_name()[0]