| Index: lib/compiler/implementation/scanner/parser.dart
|
| diff --git a/lib/compiler/implementation/scanner/parser.dart b/lib/compiler/implementation/scanner/parser.dart
|
| index 48fc94ddc6634a2d756a6e30be6e1c36bcc018c2..d8831568f4ff97186162762bdcac013b3007c3e1 100644
|
| --- a/lib/compiler/implementation/scanner/parser.dart
|
| +++ b/lib/compiler/implementation/scanner/parser.dart
|
| @@ -644,6 +644,7 @@ class Parser {
|
| }
|
|
|
| Link<Token> findMemberName(Token token) {
|
| + Token start = token;
|
| Link<Token> identifiers = const EmptyLink<Token>();
|
| while (token.kind !== EOF_TOKEN) {
|
| String value = token.stringValue;
|
| @@ -673,7 +674,7 @@ class Parser {
|
| }
|
| token = token.next;
|
| }
|
| - return listener.unexpected(token);
|
| + return listener.expectedDeclaration(start);
|
| }
|
|
|
| Token parseVariableInitializerOpt(Token token) {
|
|
|