forked from VimPlug/jedi
interpreter documentation.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
"""
|
"""
|
||||||
TODO This whole module is crap (especially since the new parser) and needs to be rewritten.
|
TODO Some parts of this module are still not well documented.
|
||||||
""" #
|
"""
|
||||||
import inspect
|
import inspect
|
||||||
import re
|
import re
|
||||||
|
|
||||||
@@ -41,6 +41,9 @@ class LazyName(helpers.FakeName):
|
|||||||
@property
|
@property
|
||||||
@underscore_memoization
|
@underscore_memoization
|
||||||
def parent(self):
|
def parent(self):
|
||||||
|
"""
|
||||||
|
Creating fake statements for the interpreter.
|
||||||
|
"""
|
||||||
obj = self._value
|
obj = self._value
|
||||||
parser_path = []
|
parser_path = []
|
||||||
if inspect.ismodule(obj):
|
if inspect.ismodule(obj):
|
||||||
@@ -102,4 +105,4 @@ class LazyName(helpers.FakeName):
|
|||||||
|
|
||||||
@parent.setter
|
@parent.setter
|
||||||
def parent(self, value):
|
def parent(self, value):
|
||||||
"""Needed because of the ``representation.Simple`` super class."""
|
"""Needed because the super class tries to set parent."""
|
||||||
|
|||||||
Reference in New Issue
Block a user