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

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

Issue 8497042: Allow error-recovery in top-level nodes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased, address review comments, and frogsh 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/frogsh ('k') | dart/frog/leg/scanner/node_scanner_bench.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
diff --git a/dart/frog/leg/scanner/listener.dart b/dart/frog/leg/scanner/listener.dart
index 377ed43cb183be400d3b64f304af70cf67be0b6e..6ee22a7b1cdb846b5806aa6726b4aa5bda22dfc6 100644
--- a/dart/frog/leg/scanner/listener.dart
+++ b/dart/frog/leg/scanner/listener.dart
@@ -480,6 +480,10 @@ class BodyListener extends ElementListener {
pushNode(new Throw(null, throwToken, endToken));
}
+ void handleNoType(Token token) {
+ pushNode(null);
+ }
+
NodeList makeNodeList(int count, Token beginToken, Token endToken,
String delimiter) {
Link<Node> nodes = const EmptyLink<Node>();
« no previous file with comments | « dart/frog/frogsh ('k') | dart/frog/leg/scanner/node_scanner_bench.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698