diff --git a/pkg/analyzer/lib/src/dart/analysis/kernel_context.dart b/pkg/analyzer/lib/src/dart/analysis/kernel_context.dart index 6c8597f3091..cba8b50171e 100644 --- a/pkg/analyzer/lib/src/dart/analysis/kernel_context.dart +++ b/pkg/analyzer/lib/src/dart/analysis/kernel_context.dart @@ -148,8 +148,10 @@ class KernelContext { } if (DEBUG) { + print('----------- ${targetLibrary.uriStr}'); var libraryKernel = libraryMap[targetLibrary.uriStr]; print(_getLibraryText(libraryKernel)); + print('--------------------------------------'); } // Create and configure a new context. diff --git a/pkg/analyzer_cli/lib/src/driver.dart b/pkg/analyzer_cli/lib/src/driver.dart index 54ee5acc5a9..78225e29952 100644 --- a/pkg/analyzer_cli/lib/src/driver.dart +++ b/pkg/analyzer_cli/lib/src/driver.dart @@ -650,7 +650,8 @@ class Driver implements CommandLineStarter { new FileContentOverlay(), null, context.sourceFactory, - context.analysisOptions); + context.analysisOptions, + enableKernelDriver: options.previewDart2); analysisDriver.results.listen((_) {}); analysisDriver.exceptions.listen((_) {}); scheduler.start();