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

Unified Diff: frog/scripts/tree_gen.py

Issue 8952006: Fix factories in Frog to correspond to the new syntax. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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/parser.dart ('K') | « frog/parser.dart ('k') | frog/tree.g.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/scripts/tree_gen.py
diff --git a/frog/scripts/tree_gen.py b/frog/scripts/tree_gen.py
old mode 100644
new mode 100755
index 122c11e48c5cdd0804f38f3ac051987072d321ba..e76b1ead6f4957156056e614795adfef809ee5cc
--- a/frog/scripts/tree_gen.py
+++ b/frog/scripts/tree_gen.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python
# Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
@@ -98,8 +99,9 @@ nodes = [
Definition('Type',
'bool isClass, Identifier name, List<ParameterType> typeParameters, '+
- 'List<TypeReference> extendsTypes, List<TypeReference> implementsTypes,'+
- 'NativeType nativeType, TypeReference factoryType, List<Statement> body'),
+ 'List<TypeReference> extendsTypes, List<TypeReference> implementsTypes, '+
+ 'NativeType nativeType, DefaultTypeReference defaultType, '+
jimhug 2011/12/15 17:05:04 This makes me smile! Thanks for doing the thoroug
+ 'List<Statement> body'),
Definition('FunctionType',
'FunctionDefinition func, List<ParameterType> typeParameters'),
@@ -110,8 +112,8 @@ nodes = [
Definition('Function',
'List<Token> modifiers, TypeReference returnType, Identifier name,' +
- 'List<FormalNode> formals, List<ParameterType> typeParameters,' +
jimhug 2011/12/15 17:05:04 Whoo hoo! You can't imagine how much joy I get ou
- 'List<Expression> initializers, String nativeBody, Statement body'),
+ 'List<FormalNode> formals, List<Expression> initializers, ' +
+ 'String nativeBody, Statement body'),
Statement('Return', 'Expression value'),
Statement('Throw', 'Expression value'),
@@ -183,6 +185,8 @@ nodes = [
'TypeReference baseType, List<TypeReference> typeArguments, int depth'),
TypeReference('Function',
'bool isFinal, FunctionDefinition func'),
+ TypeReference('Default', 'bool oldFactory, NameTypeReference baseType, '+
+ 'List<ParameterType> typeParameters'),
Node('Argument', 'Identifier label, Expression value'),
Node('Formal',
« frog/parser.dart ('K') | « frog/parser.dart ('k') | frog/tree.g.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698