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

Unified Diff: pkg/compiler/lib/src/elements/modelx.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
« no previous file with comments | « pkg/compiler/lib/src/elements/entities.dart ('k') | pkg/compiler/lib/src/elements/names.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6ff57cc0812853b7b839771819081f406764dea4..e0bdb6f01839b20296961f03b3142a73b3a49a75 100644
--- a/pkg/compiler/lib/src/elements/modelx.dart
+++ b/pkg/compiler/lib/src/elements/modelx.dart
@@ -1217,6 +1217,8 @@ class LibraryElementX extends ElementX
});
}
+ String get name => hasLibraryName ? libraryName : super.name;
Siggi Cherem (dart-lang) 2017/01/13 16:51:18 I'm not sure I follow why we also need to change `
Johnni Winther 2017/01/16 10:07:38 [name] is available on Entity but for a library it
+
bool get hasLibraryName => libraryTag != null;
String get libraryName {
« no previous file with comments | « pkg/compiler/lib/src/elements/entities.dart ('k') | pkg/compiler/lib/src/elements/names.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698