Fixed variable recognition when it is a concept
This commit is contained in:
@@ -11,6 +11,14 @@ from parsers.BaseParser import BaseParser, Node, ErrorNode
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def get_python_node(obj):
|
||||
if isinstance(obj, PythonNode):
|
||||
return obj
|
||||
if hasattr(obj, "python_node"):
|
||||
return obj.python_node
|
||||
return None
|
||||
|
||||
|
||||
@dataclass()
|
||||
class PythonErrorNode(ErrorNode):
|
||||
source: str
|
||||
|
||||
Reference in New Issue
Block a user