OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import 'dart:collection'; | 5 import 'dart:collection'; |
6 | 6 |
7 import 'package:analyzer/src/dart/analysis/driver.dart'; | |
8 import 'package:analyzer/src/dart/analysis/file_state.dart'; | 7 import 'package:analyzer/src/dart/analysis/file_state.dart'; |
| 8 import 'package:front_end/src/base/performace_logger.dart'; |
9 | 9 |
10 /** | 10 /** |
11 * Callback used by [FileTracker] to report to its client that files have been | 11 * Callback used by [FileTracker] to report to its client that files have been |
12 * added, changed, or removed, and therefore more analysis may be necessary. | 12 * added, changed, or removed, and therefore more analysis may be necessary. |
13 */ | 13 */ |
14 typedef void FileTrackerChangeHook(); | 14 typedef void FileTrackerChangeHook(); |
15 | 15 |
16 /** | 16 /** |
17 * Maintains the file system state needed by the analysis driver, as well as | 17 * Maintains the file system state needed by the analysis driver, as well as |
18 * information about files that have changed and the impact of those changes. | 18 * information about files that have changed and the impact of those changes. |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 // If the file has not been accessed yet, we either will eventually read | 286 // If the file has not been accessed yet, we either will eventually read |
287 // it later while analyzing one of the added files, or don't need it. | 287 // it later while analyzing one of the added files, or don't need it. |
288 if (_fsState.knownFilePaths.contains(path)) { | 288 if (_fsState.knownFilePaths.contains(path)) { |
289 verifyApiSignature(path); | 289 verifyApiSignature(path); |
290 } | 290 } |
291 return true; | 291 return true; |
292 } | 292 } |
293 return false; | 293 return false; |
294 } | 294 } |
295 } | 295 } |
OLD | NEW |