| 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);
|
| }
|
| }
|
|
|
|
|