Index: pkg/analyzer_experimental/lib/src/generated/resolver.dart |
diff --git a/pkg/analyzer_experimental/lib/src/generated/resolver.dart b/pkg/analyzer_experimental/lib/src/generated/resolver.dart |
index fc7b84d16f33e328f44b400c28a9d9a7c25ec549..55ef00785a21bec8efd8328cecb18ddd9208fd1a 100644 |
--- a/pkg/analyzer_experimental/lib/src/generated/resolver.dart |
+++ b/pkg/analyzer_experimental/lib/src/generated/resolver.dart |
@@ -4,7 +4,6 @@ |
library engine.resolver; |
import 'dart:collection'; |
-import 'dart:uri' show Uri; |
import 'java_core.dart'; |
import 'java_engine.dart'; |
import 'instrumentation.dart'; |
@@ -880,7 +879,7 @@ class HtmlUnitBuilder implements ht.XmlVisitor<Object> { |
ExternalHtmlScriptElementImpl script = new ExternalHtmlScriptElementImpl(node); |
if (scriptSourcePath != null) { |
try { |
- new Uri(scriptSourcePath); |
+ Uri.parse(scriptSourcePath); |
Source scriptSource = _context.sourceFactory.resolveUri(htmlSource, scriptSourcePath); |
script.scriptSource = scriptSource; |
if (!scriptSource.exists()) { |
@@ -8417,4 +8416,4 @@ class ResolverErrorCode implements Comparable<ResolverErrorCode>, ErrorCode { |
bool needsRecompilation() => true; |
int compareTo(ResolverErrorCode other) => __ordinal - other.__ordinal; |
String toString() => __name; |
-} |
+} |