Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(602)

Unified Diff: frog/tree.g.dart

Issue 9270048: Lots of frog cleanup (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« frog/gen.dart ('K') | « frog/tree.dart ('k') | frog/type.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
- }
-
}
« frog/gen.dart ('K') | « frog/tree.dart ('k') | frog/type.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698