mirror of
https://github.com/dart-lang/sdk
synced 2024-10-06 13:18:01 +00:00
Analyze requested files.
TBR R=brianwilkerson@google.com, paulberry@google.com BUG= Review URL: https://codereview.chromium.org/2453913002 .
This commit is contained in:
parent
6be23afcf2
commit
755e26c4d9
|
@ -228,7 +228,18 @@ class AnalysisDriver {
|
|||
continue;
|
||||
}
|
||||
|
||||
// TODO(scheglov) analyze requested files
|
||||
// Analyze a requested file.
|
||||
if (_requestedFiles.isNotEmpty) {
|
||||
String path = _requestedFiles.keys.first;
|
||||
AnalysisResult result = _computeAnalysisResult(path, withUnit: true);
|
||||
_requestedFiles.remove(path).forEach((completer) {
|
||||
completer.complete(result);
|
||||
});
|
||||
yield result;
|
||||
// Repeat the processing loop.
|
||||
_hasWork.notify();
|
||||
continue;
|
||||
}
|
||||
|
||||
// Analyze a priority file.
|
||||
if (_priorityFiles.isNotEmpty) {
|
||||
|
|
Loading…
Reference in a new issue