Commit db4caa01 authored by eckhart's avatar eckhart
Browse files

compile.Compiler.method_name: assert for proper node names ('\w+$')

parent 73c9aa65
......@@ -150,6 +150,7 @@ class Compiler:
>>> Compiler.method_name('expression')
assert re.match(r'\w+$', node_name)
return 'on_' + node_name
def compile_children(self, node: Node) -> StrictResultType:
Supports Markdown
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