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

Unified Diff: pkg/front_end/lib/src/incremental/file_state.dart

Issue 2876643002: Add the test for updating a part. (Closed)
Patch Set: Created 3 years, 7 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/front_end/test/incremental_kernel_generator_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/incremental/file_state.dart
diff --git a/pkg/front_end/lib/src/incremental/file_state.dart b/pkg/front_end/lib/src/incremental/file_state.dart
index 4342b357f562cbcb3e60bc29643f2321b1dc461d..c1bcfeb17b0ff2dc245f361a5f7f13aff77f5ead 100644
--- a/pkg/front_end/lib/src/incremental/file_state.dart
+++ b/pkg/front_end/lib/src/incremental/file_state.dart
@@ -123,8 +123,13 @@ class FileState {
}
// Resolve the absolute URI into the absolute file URI.
- Uri resolvedUri = _fsState.uriTranslator.translate(absoluteUri);
- if (resolvedUri == null) return;
+ Uri resolvedUri;
+ if (absoluteUri.isScheme('file')) {
+ resolvedUri = absoluteUri;
+ } else {
+ resolvedUri = _fsState.uriTranslator.translate(absoluteUri);
+ if (resolvedUri == null) return;
+ }
FileState file = await _fsState.getFile(resolvedUri);
files.add(file);
« no previous file with comments | « no previous file | pkg/front_end/test/incremental_kernel_generator_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698