mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 08:44:27 +00:00
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:
parent
81f2664908
commit
0dbc39cb5f
2 changed files with 1 additions and 4 deletions
|
@ -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.
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue