@@ -68,6 +68,7 @@ class _Compiler {
6868 bool soundNullSafety,
6969 SdkConfiguration sdkConfiguration,
7070 List <String > experiments,
71+ bool canaryFeatures,
7172 bool verbose,
7273 ) async {
7374 sdkConfiguration.validateSdkDir ();
@@ -95,6 +96,7 @@ class _Compiler {
9596 if (verbose) '--verbose' ,
9697 soundNullSafety ? '--sound-null-safety' : '--no-sound-null-safety' ,
9798 for (final experiment in experiments) '--enable-experiment=$experiment ' ,
99+ if (canaryFeatures) '--canary' ,
98100 ];
99101
100102 _logger.info ('Starting...' );
@@ -240,6 +242,7 @@ class ExpressionCompilerService implements ExpressionCompiler {
240242 final String _address;
241243 final FutureOr <int > _port;
242244 final List <String > experiments;
245+ final bool canaryFeatures;
243246 final bool _verbose;
244247
245248 final SdkConfigurationProvider sdkConfigurationProvider;
@@ -250,6 +253,7 @@ class ExpressionCompilerService implements ExpressionCompiler {
250253 bool verbose = false ,
251254 required this .sdkConfigurationProvider,
252255 this .experiments = const [],
256+ this .canaryFeatures = false ,
253257 }) : _verbose = verbose;
254258
255259 @override
@@ -287,6 +291,7 @@ class ExpressionCompilerService implements ExpressionCompiler {
287291 soundNullSafety,
288292 await sdkConfigurationProvider.configuration,
289293 experiments,
294+ canaryFeatures,
290295 _verbose,
291296 );
292297
0 commit comments