Index: frog/tree.g.dart |
diff --git a/frog/tree.g.dart b/frog/tree.g.dart |
index 7ebeefeec3b678d429eb84bf21dd89c65cd70885..6324057d6fe996ba959a52c6f3e6fc479a504f8f 100644 |
--- a/frog/tree.g.dart |
+++ b/frog/tree.g.dart |
@@ -377,6 +377,14 @@ class StringInterpExpression extends Expression { |
visit(TreeVisitor visitor) => visitor.visitStringInterpExpression(this); |
} |
+class SimpleTypeReference extends TypeReference { |
+ Type type; |
+ |
+ SimpleTypeReference(this.type, SourceSpan span): super(span) {} |
+ |
+ visit(TreeVisitor visitor) => visitor.visitSimpleTypeReference(this); |
+} |
+ |
class NameTypeReference extends TypeReference { |
bool isFinal; |
Identifier name; |
@@ -567,6 +575,8 @@ interface TreeVisitor { |
visitStringInterpExpression(StringInterpExpression node); |
+ visitSimpleTypeReference(SimpleTypeReference node); |
+ |
visitNameTypeReference(NameTypeReference node); |
visitGenericTypeReference(GenericTypeReference node); |
@@ -589,8 +599,6 @@ interface TreeVisitor { |
visitDeclaredIdentifier(DeclaredIdentifier node); |
- visitTypeReference(TypeReference node); |
- |
} |
class TreePrinter implements TreeVisitor { |
@@ -843,6 +851,10 @@ class TreePrinter implements TreeVisitor { |
output.writeNodeList('pieces', node.pieces); |
} |
+ void visitSimpleTypeReference(SimpleTypeReference node) { |
+ output.heading('SimpleTypeReference(' + output.toValue(node.type) + ")", node.span); |
+ } |
+ |
void visitNameTypeReference(NameTypeReference node) { |
output.heading('NameTypeReference', node.span); |
output.writeValue('isFinal', node.isFinal); |
@@ -915,8 +927,4 @@ class TreePrinter implements TreeVisitor { |
output.writeNode('name', node.name); |
} |
- void visitTypeReference(TypeReference node) { |
- output.heading('TypeReference(' + output.toValue(node.type) + ")", node.span); |
- } |
- |
} |