Analyze requested files.

TBR

R=brianwilkerson@google.com, paulberry@google.com
BUG=

Review URL: https://codereview.chromium.org/2453913002 .
This commit is contained in:
Konstantin Shcheglov 2016-10-26 13:16:42 -07:00
parent 6be23afcf2
commit 755e26c4d9

View file

@ -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) {