forked from VimPlug/jedi
Simple cleanup.
This commit is contained in:
@@ -207,10 +207,13 @@ class PythonMixin():
|
|||||||
|
|
||||||
|
|
||||||
class PythonLeaf(Leaf, PythonMixin):
|
class PythonLeaf(Leaf, PythonMixin):
|
||||||
pass
|
__slots__ = ()
|
||||||
|
|
||||||
|
|
||||||
class _LeafWithoutNewlines(PythonLeaf):
|
class _LeafWithoutNewlines(PythonLeaf):
|
||||||
|
"""
|
||||||
|
Simply here to optimize performance.
|
||||||
|
"""
|
||||||
__slots__ = ()
|
__slots__ = ()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@@ -218,20 +221,21 @@ class _LeafWithoutNewlines(PythonLeaf):
|
|||||||
return self.line, self.indent + len(self.value)
|
return self.line, self.indent + len(self.value)
|
||||||
|
|
||||||
|
|
||||||
|
# Python base classes
|
||||||
class PythonBaseNode(BaseNode, PythonMixin):
|
class PythonBaseNode(BaseNode, PythonMixin):
|
||||||
pass
|
__slots__ = ()
|
||||||
|
|
||||||
|
|
||||||
class PythonErrorNode(ErrorNode, PythonMixin):
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
class PythonErrorLeaf(ErrorLeaf, PythonMixin):
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
class PythonNode(Node, PythonMixin):
|
class PythonNode(Node, PythonMixin):
|
||||||
pass
|
__slots__ = ()
|
||||||
|
|
||||||
|
|
||||||
|
class PythonErrorNode(ErrorNode, PythonMixin):
|
||||||
|
__slots__ = ()
|
||||||
|
|
||||||
|
|
||||||
|
class PythonErrorLeaf(ErrorLeaf, PythonMixin):
|
||||||
|
__slots__ = ()
|
||||||
|
|
||||||
|
|
||||||
class EndMarker(_LeafWithoutNewlines):
|
class EndMarker(_LeafWithoutNewlines):
|
||||||
|
|||||||
Reference in New Issue
Block a user