-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1d21de5
commit 55baa3e
Showing
27 changed files
with
301 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
docs/task_refs/TODO_19_67_22_89.remove_ignored_func_ids_list.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
TODO: TODO_19_67_22_89: remove `ignored_func_ids_list` | ||
|
||
Instead, load unmapped `func_id`-s as `FuncState.fs_unplugged`. | ||
|
||
There should be a place in the tree where these `func_id`-s should be plugged into. | ||
Another `CompositeNodeType`? | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
from __future__ import annotations | ||
|
||
from argrelay.composite_tree.CompositeNode import BaseNode, ZeroArgNode, InterpTreeNode, FuncTreeNode, TreePathNode | ||
|
||
|
||
class AbstractNodeVisitor: | ||
|
||
def visit_node( | ||
self, | ||
node: BaseNode, | ||
): | ||
if False: | ||
pass | ||
elif isinstance(node, ZeroArgNode): | ||
self._visit_ZeroArgNode(node) | ||
elif isinstance(node, TreePathNode): | ||
self._visit_TreePathNode(node) | ||
elif isinstance(node, InterpTreeNode): | ||
self._visit_InterpTreeNode(node) | ||
elif isinstance(node, FuncTreeNode): | ||
self._visit_FuncTreeNode(node) | ||
else: | ||
raise NotImplementedError(node.node_type.name) | ||
|
||
# noinspection PyPep8Naming | ||
def _visit_ZeroArgNode(self, node: ZeroArgNode) -> None: | ||
raise NotImplementedError() | ||
|
||
# noinspection PyPep8Naming | ||
def _visit_TreePathNode(self, node: TreePathNode) -> None: | ||
raise NotImplementedError() | ||
|
||
# noinspection PyPep8Naming | ||
def _visit_InterpTreeNode(self, node: InterpTreeNode) -> None: | ||
raise NotImplementedError() | ||
|
||
# noinspection PyPep8Naming | ||
def _visit_FuncTreeNode(self, node: FuncTreeNode) -> None: | ||
raise NotImplementedError() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.