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

Unified Diff: pkg/analyzer/lib/src/dart/analysis/file_state.dart

Issue 2659103002: Fix for 'Concurrent modification during iteration' during search. (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/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 542d032164269820601aca47ae91026e2bd365e8..f92cc1cd155dac300eaf562465bed2bba12bd088 100644
--- a/pkg/analyzer/lib/src/dart/analysis/file_state.dart
+++ b/pkg/analyzer/lib/src/dart/analysis/file_state.dart
@@ -575,8 +575,8 @@ class FileSystemState {
/**
* Return the known files.
*/
- Iterable<FileState> get knownFiles =>
- _pathToFiles.values.map((files) => files.first);
+ List<FileState> get knownFiles =>
+ _pathToFiles.values.map((files) => files.first).toList();
@visibleForTesting
FileSystemStateTestView get test => _testView;
« 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