@@ -656,19 +656,6 @@ class CompilerOptions implements DiagnosticOptions {
656656 /// called.
657657 bool experimentCallInstrumentation = false ;
658658
659- /// Experiment to add additional runtime checks to detect code whose semantics
660- /// will change when sound null safety is enabled.
661- ///
662- /// In particular, runtime subtype checks (including those via `is` and `as` )
663- /// will produce diagnostics when they would provide different results in
664- /// sound vs. unsound mode. Note that this adds overhead, both to perform the
665- /// extra checks and because some checks that may have been optimized away
666- /// will be emitted.
667- ///
668- /// We assume this option will only be provided when all files have been
669- /// migrated to null safety (but before sound null safety is enabled).
670- bool experimentNullSafetyChecks = false ;
671-
672659 /// Whether to use legacy subtype semantics rather than null-safe semantics.
673660 /// This is `true` if unsound null-safety semantics are being used, since
674661 /// dart2js does not emit warnings for unsound null-safety.
@@ -944,10 +931,6 @@ class CompilerOptions implements DiagnosticOptions {
944931 options,
945932 Flags .experimentCallInstrumentation,
946933 )
947- ..experimentNullSafetyChecks = _hasOption (
948- options,
949- Flags .experimentNullSafetyChecks,
950- )
951934 ..generateSourceMap = ! _hasOption (options, Flags .noSourceMaps)
952935 .._outputUri = _extractUriOption (options, '--out=' )
953936 ..platformBinaries = platformBinaries
@@ -1085,12 +1068,6 @@ class CompilerOptions implements DiagnosticOptions {
10851068 "'${Flags .noInteropNullAssertions }'" ,
10861069 );
10871070 }
1088- if (experimentNullSafetyChecks) {
1089- throw ArgumentError (
1090- '${Flags .experimentNullSafetyChecks } is incompatible '
1091- 'with sound null safety.' ,
1092- );
1093- }
10941071 }
10951072
10961073 void deriveOptions () {
0 commit comments