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

Unified Diff: pkg/compiler/lib/src/parser/element_listener.dart

Issue 3003263002: add support for native methods in class
Patch Set: update listeners Created 3 years, 4 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: pkg/compiler/lib/src/parser/element_listener.dart
diff --git a/pkg/compiler/lib/src/parser/element_listener.dart b/pkg/compiler/lib/src/parser/element_listener.dart
index 1f1843385a178193a54083ab9ccee91713e06032..82f39a9e931f1bbbcaddc73d7e93569365fccd89 100644
--- a/pkg/compiler/lib/src/parser/element_listener.dart
+++ b/pkg/compiler/lib/src/parser/element_listener.dart
@@ -527,6 +527,7 @@ class ElementListener extends Listener {
@override
void handleRecoverableError(Token token, Message message) {
+ if (message == codes.messageNativeClauseShouldBeAnnotation) return;
handleError(token, message);
}
@@ -552,7 +553,7 @@ class ElementListener extends Listener {
switch (message.code.dart2jsCode) {
case "MISSING_TOKEN_BEFORE_THIS":
String expected = arguments["string"];
- // TODO(danrubel) This functionality is being replaced by
+ // TODO(danrubel): This functionality is being replaced by
// the parser's ensureSemicolon method.
if (identical(";", expected)) {
// When a semicolon is missing, it often leads to an error on the

Powered by Google App Engine
This is Rietveld 408576698