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

Unified Diff: frog/scripts/tree_gen.py

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
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:
« frog/gen.dart ('K') | « frog/parser.dart ('k') | frog/tests/frog/frog.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698