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

Unified Diff: pkg/compiler/lib/src/serialization/modelz.dart

Issue 2013763002: Add names and support for preserialized data to serialization tests (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 4 years, 7 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 0c06ea4b821a422970523ebf53370456b90fc40a..36ec45caac15caf7317b8c064403a2627c358f38 100644
--- a/pkg/compiler/lib/src/serialization/modelz.dart
+++ b/pkg/compiler/lib/src/serialization/modelz.dart
@@ -495,6 +495,7 @@ class LibraryElementZ extends DeserializedElementZ
class ScriptZ implements Script {
final Uri resourceUri;
SourceFile _file;
+ bool _isSynthesized = false;
ScriptZ(this.resourceUri);
@@ -518,7 +519,11 @@ class ScriptZ implements Script {
// TODO(johnniwinther): Decide if it is meaningful to serialize erroneous
// elements.
@override
- bool get isSynthesized => false;
+ bool get isSynthesized => _isSynthesized;
+
+ void set isSynthesized(bool value) {
+ _isSynthesized = value;
+ }
@override
String get name {
« no previous file with comments | « pkg/compiler/lib/src/dart_types.dart ('k') | pkg/compiler/lib/src/serialization/resolved_ast_serialization.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698