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

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

Issue 2649923002: Update listener error handling. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « pkg/compiler/lib/src/parser/element_listener.dart ('k') | pkg/compiler/lib/src/parser/node_listener.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/parser/member_listener.dart
diff --git a/pkg/compiler/lib/src/parser/member_listener.dart b/pkg/compiler/lib/src/parser/member_listener.dart
index fbf25fb19fdc34f90f0c720bd25f4291d891cf5a..ce6b0744845282f2bb29de52164cf9119377240e 100644
--- a/pkg/compiler/lib/src/parser/member_listener.dart
+++ b/pkg/compiler/lib/src/parser/member_listener.dart
@@ -77,7 +77,7 @@ class MemberListener extends NodeListener {
Element memberElement;
if (isConstructor) {
if (getOrSet != null) {
- recoverableError(getOrSet, 'illegal modifier');
+ recoverableError(reporter.spanFromToken(getOrSet), 'illegal modifier');
}
memberElement = new PartialConstructorElement(name, beginToken, endToken,
ElementKind.GENERATIVE_CONSTRUCTOR, method.modifiers, enclosingClass);
« no previous file with comments | « pkg/compiler/lib/src/parser/element_listener.dart ('k') | pkg/compiler/lib/src/parser/node_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698