57c326b76d
This makes the arguments to `ScannerConfiguration` required and uses the current enabled-by-default state as default. Furthermore, an extension method is added for `ExperimentalFeatures` (and object already required by the parser) that creates the `ScannerConfiguration` based on the enabled features. This method is used throughout the analyzer and CFE, ensuring that the scanner is set up consistently with the parser. Change-Id: Id51456d5a547b06d0925865e35e01d9dc7d65381 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/493760 Reviewed-by: Jens Johansen <jensj@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>