| Index: pkg/compiler/lib/src/parser/partial_parser.dart
|
| diff --git a/pkg/compiler/lib/src/parser/partial_parser.dart b/pkg/compiler/lib/src/parser/partial_parser.dart
|
| index 813da3ac5071a4eb7a91208d16e9b5e51953fc13..b0f5cd5ac1a1ab822215b00e7293e4f4d5da3053 100644
|
| --- a/pkg/compiler/lib/src/parser/partial_parser.dart
|
| +++ b/pkg/compiler/lib/src/parser/partial_parser.dart
|
| @@ -6,13 +6,14 @@ library dart2js.parser.partial;
|
|
|
| import '../diagnostics/messages.dart' show
|
| MessageKind;
|
| -import '../util/characters.dart' show
|
| +import '../util/characters.dart' as Characters show
|
| $CLOSE_CURLY_BRACKET;
|
| import '../tokens/token.dart' show
|
| BeginGroupToken,
|
| - EOF_TOKEN,
|
| ErrorToken,
|
| Token;
|
| +import '../tokens/token_constants.dart' as Tokens show
|
| + EOF_TOKEN;
|
|
|
| import 'listener.dart' show
|
| Listener;
|
| @@ -44,7 +45,7 @@ class PartialParser extends Parser {
|
| while (true) {
|
| final kind = token.kind;
|
| final value = token.stringValue;
|
| - if ((identical(kind, EOF_TOKEN)) ||
|
| + if ((identical(kind, Tokens.EOF_TOKEN)) ||
|
| (identical(value, ';')) ||
|
| (identical(value, ',')) ||
|
| (identical(value, '}')) ||
|
| @@ -112,7 +113,7 @@ class PartialParser extends Parser {
|
| Token endGroup = beginGroupToken.endGroup;
|
| if (endGroup == null) {
|
| return listener.unmatched(beginGroupToken);
|
| - } else if (!identical(endGroup.kind, $CLOSE_CURLY_BRACKET)) {
|
| + } else if (!identical(endGroup.kind, Characters.$CLOSE_CURLY_BRACKET)) {
|
| return listener.unmatched(beginGroupToken);
|
| }
|
| return endGroup;
|
|
|