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

Unified Diff: pkg/compiler/lib/src/elements/modelx.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/elements/modelx.dart
diff --git a/pkg/compiler/lib/src/elements/modelx.dart b/pkg/compiler/lib/src/elements/modelx.dart
index 5c74d62e6ad7baaf175bc740ec4b3a7def35714a..65742316c66ff25e990a162e3b8f69e1f1b68f9f 100644
--- a/pkg/compiler/lib/src/elements/modelx.dart
+++ b/pkg/compiler/lib/src/elements/modelx.dart
@@ -37,9 +37,10 @@ import '../resolution/typedefs.dart' show
TypedefCyclicVisitor;
import '../script.dart';
import '../tokens/token.dart' show
- EOF_TOKEN,
ErrorToken,
Token;
+import '../tokens/token_constants.dart' as Tokens show
+ EOF_TOKEN;
import '../tree/tree.dart';
import '../util/util.dart';
@@ -138,7 +139,7 @@ abstract class ElementX extends Element with ElementCommon {
String needle = isConstructor ? enclosingClassName : name;
// The unary '-' operator has a special element name (specified).
if (needle == 'unary-') needle = '-';
- for (Token t = token; EOF_TOKEN != t.kind; t = t.next) {
+ for (Token t = token; Tokens.EOF_TOKEN != t.kind; t = t.next) {
if (t is !ErrorToken && needle == t.value) return t;
}
return token;

Powered by Google App Engine
This is Rietveld 408576698