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

Unified Diff: pkg/compiler/lib/src/compiler.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/compiler.dart
diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart
index 97f4b111aa01ae1374e3203a644226c54f12f143..1f7670b1ce409c2476168f0944d0653969daa319 100644
--- a/pkg/compiler/lib/src/compiler.dart
+++ b/pkg/compiler/lib/src/compiler.dart
@@ -115,11 +115,12 @@ import 'ssa/ssa.dart' show
import 'tracer.dart' show
Tracer;
import 'tokens/token.dart' show
- COMMENT_TOKEN,
- EOF_TOKEN,
StringToken,
Token,
TokenPair;
+import 'tokens/token_constants.dart' as Tokens show
+ COMMENT_TOKEN,
+ EOF_TOKEN;
import 'tokens/token_map.dart' show
TokenMap;
import 'tree/tree.dart' show
@@ -1524,10 +1525,10 @@ abstract class Compiler implements DiagnosticListener {
Token processAndStripComments(Token currentToken) {
Token firstToken = currentToken;
Token prevToken;
- while (currentToken.kind != EOF_TOKEN) {
- if (identical(currentToken.kind, COMMENT_TOKEN)) {
+ while (currentToken.kind != Tokens.EOF_TOKEN) {
+ if (identical(currentToken.kind, Tokens.COMMENT_TOKEN)) {
Token firstCommentToken = currentToken;
- while (identical(currentToken.kind, COMMENT_TOKEN)) {
+ while (identical(currentToken.kind, Tokens.COMMENT_TOKEN)) {
currentToken = currentToken.next;
}
commentMap[currentToken] = firstCommentToken;

Powered by Google App Engine
This is Rietveld 408576698