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

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

Issue 2907673002: Files are added with absolute URIs, but invalidated with file URIs. (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/lib/src/incremental_kernel_generator_impl.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 accbdcf42f4ba6979150f2cde770188c12ae8fc6..ac7e14ad1e310d7bbfb5e5f542f8d82bc971c059 100644
--- a/pkg/front_end/lib/src/incremental/file_state.dart
+++ b/pkg/front_end/lib/src/incremental/file_state.dart
@@ -262,6 +262,10 @@ class FileSystemState {
}
return file;
}
+
+ /// Return the [FileState] for the given [fileUri], or `null` if the
+ /// [fileUri] does not yet correspond to any referenced [FileState].
+ FileState getFileByFileUri(Uri fileUri) => _fileUriToFile[fileUri];
}
/// List of libraries that reference each other, so form a cycle.
« no previous file with comments | « no previous file | pkg/front_end/lib/src/incremental_kernel_generator_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698