Index: pkg/analyzer/test/generated/test_support.dart |
diff --git a/pkg/analyzer/test/generated/test_support.dart b/pkg/analyzer/test/generated/test_support.dart |
index c59d37577bcf790379d78dfb04ffbf03ff448b8c..e5a05d06a128c068b412c7366959ec1167c607fa 100644 |
--- a/pkg/analyzer/test/generated/test_support.dart |
+++ b/pkg/analyzer/test/generated/test_support.dart |
@@ -615,3 +615,32 @@ class TestSource extends Source { |
_contents = value; |
} |
} |
+ |
+class TestSourceWithUri extends TestSource { |
+ final Uri uri; |
+ |
+ TestSourceWithUri(String path, this.uri, [String content]) |
+ : super(path, content); |
+ |
+ UriKind get uriKind { |
+ if (uri == null) { |
+ return UriKind.FILE_URI; |
+ } else if (uri.scheme == 'dart') { |
+ return UriKind.DART_URI; |
+ } else if (uri.scheme == 'package') { |
+ return UriKind.PACKAGE_URI; |
+ } |
+ return UriKind.FILE_URI; |
+ } |
+ |
+ bool operator ==(Object other) { |
+ if (other is TestSource) { |
+ return other.uri == uri; |
+ } |
+ return false; |
+ } |
+ |
+ Uri resolveRelativeUri(Uri uri) { |
+ return this.uri.resolveUri(uri); |
+ } |
+} |