Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Unified Diff: pkg/analyzer/lib/src/generated/utilities_dart.dart

Issue 2662033002: Remove analyzer workaround for #27447. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/utilities_dart.dart
diff --git a/pkg/analyzer/lib/src/generated/utilities_dart.dart b/pkg/analyzer/lib/src/generated/utilities_dart.dart
index 550e4ca373a509c8ca2eb9c65883412c1813f713..fe05c1e9ee9c57ab0bea58b8ac391c99d0916a13 100644
--- a/pkg/analyzer/lib/src/generated/utilities_dart.dart
+++ b/pkg/analyzer/lib/src/generated/utilities_dart.dart
@@ -33,16 +33,6 @@ Uri resolveRelativeUri(Uri baseUri, Uri containedUri) {
baseUri = Uri.parse('$scheme:$part/$part.dart');
}
}
- // foo.dart + ../bar.dart = ../bar.dart
- // TODO(scheglov) Remove this temporary workaround.
- // Should be fixed as https://github.com/dart-lang/sdk/issues/27447
- List<String> baseSegments = baseUri.pathSegments;
- List<String> containedSegments = containedUri.pathSegments;
- if (baseSegments.length == 1 &&
- containedSegments.length > 0 &&
- containedSegments[0] == '..') {
- return containedUri;
- }
return baseUri.resolveUri(containedUri);
} catch (exception, stackTrace) {
throw new AnalysisException(
« no previous file with comments | « no previous file | pkg/analyzer/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698