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

Unified Diff: pkg/front_end/lib/src/incremental_resolved_ast_generator_impl.dart

Issue 2651193002: Always pass "allocate: true" when converting URIs to paths. (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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/incremental_resolved_ast_generator_impl.dart
diff --git a/pkg/front_end/lib/src/incremental_resolved_ast_generator_impl.dart b/pkg/front_end/lib/src/incremental_resolved_ast_generator_impl.dart
index 19d228a692f8b6c32f6b16af6225fc4f8665ab61..aa51fbf29b7c4e844ffce2a1ec65233731c0581c 100644
--- a/pkg/front_end/lib/src/incremental_resolved_ast_generator_impl.dart
+++ b/pkg/front_end/lib/src/incremental_resolved_ast_generator_impl.dart
@@ -268,11 +268,8 @@ class _SourceFactoryProxy implements SourceFactory {
@override
Source forUri(String absoluteUri) {
Uri uri = Uri.parse(absoluteUri);
- if (uri.scheme == 'dart') {
- return new _SourceProxy(
- uri, _fileRepository.pathForUri(uri, allocate: true));
- }
- return new _SourceProxy(uri, _fileRepository.pathForUri(uri));
+ return new _SourceProxy(
+ uri, _fileRepository.pathForUri(uri, allocate: true));
}
noSuchMethod(Invocation invocation) => unimplemented();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698