Commit 662a384f authored by Matthias Braun's avatar Matthias Braun
Browse files

move block/usesGraph defaults to spec_util

The jFirm generator reuses the code in spec_util and needs these
defaults too.
parent 36408645
......@@ -211,8 +211,6 @@ env.filters['stringformat'] = format_stringformat
def preprocess_node(node):
setdefault(node, "attrs_name", node.name.lower())
setdefault(node, "block", None)
setdefault(node, "usesGraph", node.block != None)
# construct node arguments
arguments = [ ]
......
......@@ -91,6 +91,8 @@ def setnodedefaults(node):
setdefault(node, "attrs", [])
setdefault(node, "constructor_args", [])
setdefault(node, "customSerializer", False)
setdefault(node, "block", None)
setdefault(node, "usesGraph", node.block != None)
if hasattr(node, "__doc__"):
node.doc = trim_docstring(node.__doc__)
else:
......
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