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); |