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

Unified Diff: dart/frog/leg/scanner/listener.dart

Issue 8462004: Integrate leg as a component in test.py. Also update presubmit script to run tests with leg. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 1 month 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
« no previous file with comments | « dart/frog/leg/compiler.dart ('k') | dart/frog/leg/scanner/parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/leg/scanner/listener.dart
===================================================================
--- dart/frog/leg/scanner/listener.dart (revision 1186)
+++ dart/frog/leg/scanner/listener.dart (working copy)
@@ -22,6 +22,7 @@
topLevelElements = const EmptyLink<Element>();
void beginLibraryTag(Token token) {
+ canceler.cancel("Cannot handle library tags");
libraryTagCount++;
}
@@ -30,7 +31,9 @@
push(token, buildClassElement);
}
- Element buildClassElement(DeclarationBuilder declaration) => null;
+ Element buildClassElement(DeclarationBuilder declaration) {
+ canceler.cancel("Cannot handle classes");
+ }
void endClass(Token token) {
handleDeclaration(pop(), token);
@@ -41,7 +44,9 @@
push(token, buildInterfaceElement);
}
- Element buildInterfaceElement(DeclarationBuilder declaration) => null;
+ Element buildInterfaceElement(DeclarationBuilder declaration) {
+ canceler.cancel("Cannot handle interfaces");
+ }
void endInterface(Token token) {
handleDeclaration(pop(), token);
@@ -52,7 +57,9 @@
push(token, buildFunctionTypeAliasElement);
}
- Element buildFunctionTypeAliasElement(DeclarationBuilder declaration) => null;
+ Element buildFunctionTypeAliasElement(DeclarationBuilder declaration) {
+ canceler.cancel("Cannot handle typedefs");
+ }
void endFunctionTypeAlias(Token token) {
handleDeclaration(pop(), token);
@@ -78,7 +85,9 @@
builders.head.name = previousIdentifier.source;
}
- Element buildField(DeclarationBuilder declaration) => null;
+ Element buildField(DeclarationBuilder declaration) {
+ canceler.cancel("Cannot handle fields");
+ }
void endTopLevelMember(Token token) {
handleDeclaration(pop(), token);
« no previous file with comments | « dart/frog/leg/compiler.dart ('k') | dart/frog/leg/scanner/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698