| 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 8c5015abe2b43f56d85f83fa204808f04a87fae5..f90049b7d56694bae16cdb5748d4c6b5abe09e34 100644
|
| --- a/pkg/analyzer/lib/src/generated/source.dart
|
| +++ b/pkg/analyzer/lib/src/generated/source.dart
|
| @@ -739,14 +739,11 @@ class SourceFactory {
|
| bool isLocalSource(Source source) => _localSourcePredicate.isLocal(source);
|
|
|
| /**
|
| - * Return a source object representing the URI that results from resolving the given (possibly
|
| - * relative) contained URI against the URI associated with an existing source object, whether or
|
| - * not the resulting source exists, or `null` if either the contained URI is invalid or if
|
| - * it cannot be resolved against the source object's URI.
|
| - *
|
| - * @param containingSource the source containing the given URI
|
| - * @param containedUri the (possibly relative) URI to be resolved against the containing source
|
| - * @return the source representing the contained URI
|
| + * Return a source representing the URI that results from resolving the given
|
| + * (possibly relative) [containedUri] against the URI associated with the
|
| + * [containingSource], whether or not the resulting source exists, or `null`
|
| + * if either the [containedUri] is invalid or if it cannot be resolved against
|
| + * the [containingSource]'s URI.
|
| */
|
| Source resolveUri(Source containingSource, String containedUri) {
|
| if (containedUri == null || containedUri.isEmpty) {
|
| @@ -756,6 +753,8 @@ class SourceFactory {
|
| // Force the creation of an escaped URI to deal with spaces, etc.
|
| return _internalResolveUri(
|
| containingSource, parseUriWithException(containedUri));
|
| + } on URISyntaxException {
|
| + return null;
|
| } catch (exception, stackTrace) {
|
| String containingFullName =
|
| containingSource != null ? containingSource.fullName : '<null>';
|
|
|