| Index: pkg/analyzer/lib/src/dart/analysis/file_state.dart
|
| diff --git a/pkg/analyzer/lib/src/dart/analysis/file_state.dart b/pkg/analyzer/lib/src/dart/analysis/file_state.dart
|
| index ecb8b6750ef275fe40cfdac21dab185d14876168..70ba1ee4640368cd714a1382261f6e34ded1d91c 100644
|
| --- a/pkg/analyzer/lib/src/dart/analysis/file_state.dart
|
| +++ b/pkg/analyzer/lib/src/dart/analysis/file_state.dart
|
| @@ -661,6 +661,17 @@ class FileSystemState {
|
| ..insert(0, canonicalFile);
|
| }
|
|
|
| + /**
|
| + * Remove the file with the given [path].
|
| + */
|
| + void removeFile(String path) {
|
| + _uriToFile.clear();
|
| + knownFilePaths.clear();
|
| + _pathToFiles.clear();
|
| + _pathToCanonicalFile.clear();
|
| + _partToLibraries.clear();
|
| + }
|
| +
|
| void _addFileWithPath(String path, FileState file) {
|
| var files = _pathToFiles[path];
|
| if (files == null) {
|
|
|