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

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

Issue 2632643002: Remove LibraryEntity.libraryName (Closed)
Patch Set: Created 3 years, 11 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 e1fb5d0b60ffe27dfdb070ed4bce117efccce32b..2ce17b361f9889f425997944c0407c789e23d1b8 100644
--- a/pkg/compiler/lib/src/serialization/modelz.dart
+++ b/pkg/compiler/lib/src/serialization/modelz.dart
@@ -418,7 +418,7 @@ class LibraryElementZ extends DeserializedElementZ
Element get enclosingElement => null;
@override
- String get name => entryCompilationUnit.name;
+ String get name => hasLibraryName ? libraryName : entryCompilationUnit.name;
@override
SourceSpan get sourcePosition => entryCompilationUnit.sourcePosition;
« pkg/compiler/lib/src/elements/modelx.dart ('K') | « pkg/compiler/lib/src/elements/names.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698