Commit 84321467 authored by Tom Niget's avatar Tom Niget

Remove unused class

parent 903334eb
......@@ -26,21 +26,6 @@ class UniversalVisitor:
def missing_impl(self, node):
raise UnsupportedNodeError(node)
class TypeVisitor(UniversalVisitor):
def visit_TypeVariable(self, node: TypeVariable) -> Iterable[str]:
yield str(node)
#raise ValueError("Unresolved type variable")
def visit_BaseType(self, node: BaseType) -> Iterable[str]:
node = node.resolve()
if node is TY_INT:
yield "int"
elif node is TY_BOOL:
yield "bool"
elif isinstance(node, TypeVariable):
raise NotImplementedError(f"Not unified type variable {node}")
else:
raise NotImplementedError(node)
class NodeVisitor(UniversalVisitor):
def process_args(self, node: ast.arguments) -> (str, str, str):
......
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