Revert "When analyzer_cli is given --preview-dart-2, use KernelDriver."

This reverts commit 7d28e6fc21.

Reason for revert: <INSERT REASONING HERE>

Original change's description:
> When analyzer_cli is given --preview-dart-2, use KernelDriver.
> 
> R=​brianwilkerson@google.com, paulberry@google.com
> 
> Bug:
> Change-Id: I91484f906a691fba80917f8fd8ec1c0628c0815f
> Reviewed-on: https://dart-review.googlesource.com/14505
> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>

TBR=paulberry@google.com,scheglov@google.com,brianwilkerson@google.com

Change-Id: Ib440303cd82d6ebb14ef7d14efdb6b535cc0bf88
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/14580
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
Konstantin Shcheglov 2017-10-17 19:06:11 +00:00 committed by commit-bot@chromium.org
parent 81f2664908
commit 0dbc39cb5f
2 changed files with 1 additions and 4 deletions

View file

@ -148,10 +148,8 @@ class KernelContext {
}
if (DEBUG) {
print('----------- ${targetLibrary.uriStr}');
var libraryKernel = libraryMap[targetLibrary.uriStr];
print(_getLibraryText(libraryKernel));
print('--------------------------------------');
}
// Create and configure a new context.

View file

@ -650,8 +650,7 @@ class Driver implements CommandLineStarter {
new FileContentOverlay(),
null,
context.sourceFactory,
context.analysisOptions,
enableKernelDriver: options.previewDart2);
context.analysisOptions);
analysisDriver.results.listen((_) {});
analysisDriver.exceptions.listen((_) {});
scheduler.start();