commit | c86c277c0fde675958606ed6deb66795ff28cee7 | [log] [tgz] |
---|---|---|
author | Nate Bosch <nbosch@google.com> | Wed May 22 16:52:27 2019 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org> | Wed May 22 16:52:27 2019 +0000 |
tree | 7f74a287369d739be6dfeb99e0342b2535bed5ff | |
parent | 7cb48804ee2111ac2ba55e112f8b46c6b531cc2f [diff] |
Reapply "Use the full URI for DDK library debug names" This reverts commit 3bc0ad4ee399b2b97f8d9747db6ec1bb336e68c3. Fixes #36736 The problems with hot reload are fixed in https://github.com/dart-lang/build/pull/2280 Change-Id: I12de170423c6bfe73816172959e4bc624d9b0f13 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/103362 Reviewed-by: Jake Macdonald <jakemac@google.com> Commit-Queue: Nate Bosch <nbosch@google.com>
diff --git a/pkg/dev_compiler/lib/src/kernel/compiler.dart b/pkg/dev_compiler/lib/src/kernel/compiler.dart index 3dc3e06..c65bf40 100644 --- a/pkg/dev_compiler/lib/src/kernel/compiler.dart +++ b/pkg/dev_compiler/lib/src/kernel/compiler.dart
@@ -335,13 +335,7 @@ } @override - String jsLibraryDebuggerName(Library library) { - var uri = library.importUri; - // For package: and dart: uris show the entire - if (uri.scheme == 'dart' || uri.scheme == 'package') return uri.toString(); - // TODO(jmesserly): this is not unique typically. - return uri.pathSegments.last; - } + String jsLibraryDebuggerName(Library library) => '${library.importUri}'; @override bool isSdkInternalRuntime(Library l) {