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

Unified Diff: pkg/compiler/lib/src/elements/common.dart

Issue 1335983004: Add ImportElement and ExportElement (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. 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
« no previous file with comments | « pkg/compiler/lib/src/dump_info.dart ('k') | pkg/compiler/lib/src/elements/elements.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/elements/common.dart
diff --git a/pkg/compiler/lib/src/elements/common.dart b/pkg/compiler/lib/src/elements/common.dart
index 5320fcb28f9b72c009762ce3226c8bf0db520def..6c4352a3ed10a338555c15fa627abd8fe890c8b7 100644
--- a/pkg/compiler/lib/src/elements/common.dart
+++ b/pkg/compiler/lib/src/elements/common.dart
@@ -133,9 +133,9 @@ abstract class LibraryElementCommon implements LibraryElement {
bool get isInternalLibrary =>
isPlatformLibrary && canonicalUri.path.startsWith('_');
- String getLibraryOrScriptName() {
- if (hasLibraryName()) {
- return getLibraryName();
+ String get libraryOrScriptName {
+ if (hasLibraryName) {
+ return libraryName;
} else {
// Use the file name as script name.
String path = canonicalUri.path;
@@ -145,7 +145,7 @@ abstract class LibraryElementCommon implements LibraryElement {
int compareTo(LibraryElement other) {
if (this == other) return 0;
- return getLibraryOrScriptName().compareTo(other.getLibraryOrScriptName());
+ return libraryOrScriptName.compareTo(other.libraryOrScriptName);
}
}
« no previous file with comments | « pkg/compiler/lib/src/dump_info.dart ('k') | pkg/compiler/lib/src/elements/elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698