mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 00:39:49 +00:00
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:
parent
2912e95451
commit
8b9e1bda84
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue