Index: frog/scripts/tree_gen.py |
diff --git a/frog/scripts/tree_gen.py b/frog/scripts/tree_gen.py |
index 8ddc95a1c244375060f7298c7562d39d671a802f..1cd0a23dce82ff5fb5f60079d3b8e67dd0a97907 100755 |
--- a/frog/scripts/tree_gen.py |
+++ b/frog/scripts/tree_gen.py |
@@ -180,6 +180,7 @@ nodes = [ |
Expression('StringInterp', 'List<Expression> pieces'), |
# TODO(jimhug): Split into Simple and Qualified names |
+ TypeReference('Simple', 'Type type'), |
TypeReference('Name', |
'bool isFinal, Identifier name, List<Identifier> names'), |
@@ -187,6 +188,7 @@ nodes = [ |
'TypeReference baseType, List<TypeReference> typeArguments, int depth'), |
TypeReference('Function', |
'bool isFinal, FunctionDefinition func'), |
+ # TODO(jimhug): This shouldn't be a subtype of TypeReference. |
TypeReference('Default', 'bool oldFactory, NameTypeReference baseType, '+ |
'List<ParameterType> typeParameters'), |
@@ -217,10 +219,6 @@ def main(): |
node.write(cw) |
cw.writeln() |
- # TypeReference is a bit special: it's a base type, but we also create it |
- # directly. Add it to nodes after we've generated the nodes. |
- nodes.append(TypeReference('', 'Type type')) |
- |
cw.writeln() |
cw.enterBlock('interface TreeVisitor {') |
for node in nodes: |