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

Unified Diff: pkg/compiler/lib/src/serialization/modelz.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/serialization/modelz.dart
diff --git a/pkg/compiler/lib/src/serialization/modelz.dart b/pkg/compiler/lib/src/serialization/modelz.dart
index ef72bfff5303938a9fd443ec213d63052ba0bbd5..a0ba0a8d5db71215630c33e98619e37e37229745 100644
--- a/pkg/compiler/lib/src/serialization/modelz.dart
+++ b/pkg/compiler/lib/src/serialization/modelz.dart
@@ -35,9 +35,10 @@ import '../resolution/scope.dart' show
Scope;
import '../script.dart';
import '../serialization/constant_serialization.dart';
-import '../tokens/token.dart' show
- Token,
+import '../tokens/precedence_constants.dart' as Precedence show
SEMICOLON_INFO;
+import '../tokens/token.dart' show
+ Token;
import '../tree/tree.dart';
import '../util/util.dart' show
Link,
@@ -484,7 +485,8 @@ class LibraryElementZ extends DeserializedElementZ
Import tag = new Import(
builder.keywordToken('import'),
builder.literalString(library.canonicalUri.toString())
- ..getEndToken().next = builder.symbolToken(SEMICOLON_INFO),
+ ..getEndToken().next =
+ builder.symbolToken(Precedence.SEMICOLON_INFO),
null, // prefix
null, // combinators
null, // metadata
@@ -494,7 +496,8 @@ class LibraryElementZ extends DeserializedElementZ
Export tag = new Export(
builder.keywordToken('export'),
builder.literalString(library.canonicalUri.toString())
- ..getEndToken().next = builder.symbolToken(SEMICOLON_INFO),
+ ..getEndToken().next =
+ builder.symbolToken(Precedence.SEMICOLON_INFO),
null, // combinators
null); // metadata
_libraryDependencies[tag] = library;

Powered by Google App Engine
This is Rietveld 408576698