| Index: pkg/analyzer/lib/src/generated/source.dart
|
| diff --git a/pkg/analyzer/lib/src/generated/source.dart b/pkg/analyzer/lib/src/generated/source.dart
|
| index 75c175a512838db98c4301e6d37e3fa3d660304f..5b96dbd83198b1dc52ff1558ed8587a746e93809 100644
|
| --- a/pkg/analyzer/lib/src/generated/source.dart
|
| +++ b/pkg/analyzer/lib/src/generated/source.dart
|
| @@ -818,10 +818,11 @@ class SourceFactory {
|
| if (_packages != null && containedUri.scheme == 'package') {
|
| Uri packageUri =
|
| _packages.resolve(containedUri, notFound: (Uri packageUri) => null);
|
| - //TODO(pquitslund): package_config needs to be updated to set schemes for file URIs.
|
| + // Ensure scheme is set.
|
| if (packageUri != null && packageUri.scheme == '') {
|
| - containedUri = packageUri.replace(scheme: 'file');
|
| + packageUri = packageUri.replace(scheme: 'file');
|
| }
|
| + containedUri = packageUri;
|
| }
|
| for (UriResolver resolver in _resolvers) {
|
| Source result = resolver.resolveAbsolute(containedUri);
|
|
|