| Index: pkg/compiler/lib/src/mirrors/dart2js_library_mirror.dart
|
| diff --git a/pkg/compiler/lib/src/mirrors/dart2js_library_mirror.dart b/pkg/compiler/lib/src/mirrors/dart2js_library_mirror.dart
|
| index fd2504aaaee640b85c45a775131b2f649a476115..38925b5d5667ac05589a8651041bb6d2d6740bcf 100644
|
| --- a/pkg/compiler/lib/src/mirrors/dart2js_library_mirror.dart
|
| +++ b/pkg/compiler/lib/src/mirrors/dart2js_library_mirror.dart
|
| @@ -33,15 +33,7 @@ class Dart2JsLibraryMirror
|
| * file name (for scripts without a library tag). The latter case is used to
|
| * provide a 'library name' for scripts, to use for instance in dartdoc.
|
| */
|
| - String get _simpleNameString {
|
| - if (_element.libraryTag != null) {
|
| - return _element.libraryTag.name.toString();
|
| - } else {
|
| - // Use the file name as script name.
|
| - String path = _element.canonicalUri.path;
|
| - return path.substring(path.lastIndexOf('/') + 1);
|
| - }
|
| - }
|
| + String get _simpleNameString => _element.getLibraryOrScriptName();
|
|
|
| Symbol get qualifiedName => simpleName;
|
|
|
|
|