Copy the CLI flag into the AnalysisOptions file

Change-Id: I0c5da5f884ed1343f2dbb999fed136f49bd55103
Reviewed-on: https://dart-review.googlesource.com/37649
Reviewed-by: Jaime Wren <jwren@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Jaime Wren <jwren@google.com>
This commit is contained in:
Jaime Wren 2018-01-31 17:26:55 +00:00 committed by commit-bot@chromium.org
parent 2912e95451
commit 8b9e1bda84

View file

@ -873,6 +873,7 @@ class Driver implements CommandLineStarter {
contextOptions.hint = !options.disableHints;
contextOptions.generateImplicitErrors = options.showPackageWarnings;
contextOptions.generateSdkErrors = options.showSdkWarnings;
contextOptions.previewDart2 = options.previewDart2;
if (options.useCFE) {
contextOptions.useFastaParser = true;
}