Index: sdk/lib/_internal/compiler/implementation/library_loader.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/library_loader.dart b/sdk/lib/_internal/compiler/implementation/library_loader.dart |
index 3bc867dd2e83106afcf01d7e2b4dc610dfbeda3d..d7b538e6acba61e10ae1732c6fe69eb7db276732 100644 |
--- a/sdk/lib/_internal/compiler/implementation/library_loader.dart |
+++ b/sdk/lib/_internal/compiler/implementation/library_loader.dart |
@@ -225,12 +225,12 @@ class LibraryLoaderTask extends LibraryLoader { |
if (!identical(existing, library)) { |
Uri uri = library.entryCompilationUnit.script.uri; |
compiler.reportMessage( |
- compiler.spanFromNode(tag.name, uri), |
+ compiler.spanFromSpannable(tag.name, uri), |
MessageKind.DUPLICATED_LIBRARY_NAME.error([name]), |
api.Diagnostic.WARNING); |
Uri existingUri = existing.entryCompilationUnit.script.uri; |
compiler.reportMessage( |
- compiler.spanFromNode(existing.libraryTag.name, existingUri), |
+ compiler.spanFromSpannable(existing.libraryTag.name, existingUri), |
MessageKind.DUPLICATED_LIBRARY_NAME.error([name]), |
api.Diagnostic.WARNING); |
} |