Chromium Code Reviews| 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 ac7e14ad1e310d7bbfb5e5f542f8d82bc971c059..28dca7286319d0bd8f7b7e03364d2e2652810191 100644 |
| --- a/pkg/front_end/lib/src/incremental/file_state.dart |
| +++ b/pkg/front_end/lib/src/incremental/file_state.dart |
| @@ -221,10 +221,12 @@ class FileSystemState { |
| _FileSystemView _fileSystemView; |
| - /// Mapping from file URIs to corresponding [FileState]s. |
| + /// Mapping from import URIs to corresponding [FileState]s. For example, this |
| + /// may contain an entry for `dart:core`. |
| final Map<Uri, FileState> _uriToFile = {}; |
| - /// Mapping from file URIs to corresponding [FileState]s. |
| + /// Mapping from file URIs to corresponding [FileState]s. This map should only |
| + /// contain `file:*` URIs as keys. |
| final Map<Uri, FileState> _fileUriToFile = {}; |
| FileSystemState(this.fileSystem, this.uriTranslator); |
| @@ -237,6 +239,9 @@ class FileSystemState { |
| return _fileSystemView ??= new _FileSystemView(this); |
| } |
| + /// The `file:` URI of all files currently tracked by this instance. |
| + Iterable<Uri> get trackedFiles => _fileUriToFile.keys; |
|
scheglov
2017/06/07 01:04:42
We don't say "tracked" about every method in this
Siggi Cherem (dart-lang)
2017/06/07 20:17:11
Done.
|
| + |
| /// Return the [FileState] for the given [absoluteUri], or `null` if the |
| /// [absoluteUri] cannot be resolved into a file URI. |
| /// |