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

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

Issue 1311783012: Split parser/listener.dart, parser/class_element_listener.dart and tokens/token.dart into smaller l… (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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/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;

Powered by Google App Engine
This is Rietveld 408576698