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

Unified Diff: pkg/compiler/lib/src/native/scanner.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/native/scanner.dart
diff --git a/pkg/compiler/lib/src/native/scanner.dart b/pkg/compiler/lib/src/native/scanner.dart
index bbbbb2eaf69a7a70870a97ff2a359418b138f453..cfdb703b35980f353b18505815607b3c1980de24 100644
--- a/pkg/compiler/lib/src/native/scanner.dart
+++ b/pkg/compiler/lib/src/native/scanner.dart
@@ -13,7 +13,7 @@ void checkAllowedLibrary(ElementListener listener, Token token) {
Token handleNativeBlockToSkip(Listener listener, Token token) {
checkAllowedLibrary(listener, token);
token = token.next;
- if (identical(token.kind, STRING_TOKEN)) {
+ if (identical(token.kind, Tokens.STRING_TOKEN)) {
token = token.next;
}
if (identical(token.stringValue, '{')) {
@@ -29,7 +29,7 @@ Token handleNativeFunctionBody(ElementListener listener, Token token) {
listener.beginReturnStatement(token);
token = token.next;
bool hasExpression = false;
- if (identical(token.kind, STRING_TOKEN)) {
+ if (identical(token.kind, Tokens.STRING_TOKEN)) {
hasExpression = true;
listener.beginLiteralString(token);
listener.endLiteralString(0);

Powered by Google App Engine
This is Rietveld 408576698