Commit b798aa91 authored by Yeuoly's avatar Yeuoly Committed by takatost

feat: mapping variables

parent 2db67c41
...@@ -87,7 +87,7 @@ class CodeNode(BaseNode): ...@@ -87,7 +87,7 @@ class CodeNode(BaseNode):
:return: :return:
""" """
node_data = self.node_data node_data = self.node_data
node_data = cast(self._node_data_cls, node_data) node_data: CodeNodeData = cast(self._node_data_cls, node_data)
# Get code language # Get code language
code_language = node_data.code_language code_language = node_data.code_language
...@@ -241,11 +241,13 @@ class CodeNode(BaseNode): ...@@ -241,11 +241,13 @@ class CodeNode(BaseNode):
return transformed_result return transformed_result
@classmethod @classmethod
def _extract_variable_selector_to_variable_mapping(cls, node_data: BaseNodeData) -> dict[list[str], str]: def _extract_variable_selector_to_variable_mapping(cls, node_data: CodeNodeData) -> dict[list[str], str]:
""" """
Extract variable selector to variable mapping Extract variable selector to variable mapping
:param node_data: node data :param node_data: node data
:return: :return:
""" """
# TODO extract variable selector to variable mapping for single step debugging
return {} return {
variable_selector.value_selector: variable_selector.variable for variable_selector in node_data.variables
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment