Use NnbdMode.Strong for frontend_server/ binary protocol.

Bug: https://github.com/dart-lang/sdk/issues/50100
Change-Id: Ibbacffd90c49d1446df4a59fd718b53017dda0f0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/262441
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
This commit is contained in:
Konstantin Shcheglov 2022-10-19 21:40:13 +00:00 committed by Commit Queue
parent 83f292e0d6
commit 76c8886ff5

View file

@ -8,6 +8,7 @@ import 'dart:io' as io;
import 'dart:typed_data'; import 'dart:typed_data';
import 'package:_fe_analyzer_shared/src/macros/compiler/request_channel.dart'; import 'package:_fe_analyzer_shared/src/macros/compiler/request_channel.dart';
import 'package:front_end/src/base/nnbd_mode.dart' as fe;
import 'package:front_end/src/api_prototype/compiler_options.dart' as fe; import 'package:front_end/src/api_prototype/compiler_options.dart' as fe;
import 'package:front_end/src/api_prototype/file_system.dart' as fe; import 'package:front_end/src/api_prototype/file_system.dart' as fe;
import 'package:front_end/src/api_prototype/kernel_generator.dart' as fe; import 'package:front_end/src/api_prototype/kernel_generator.dart' as fe;
@ -73,6 +74,7 @@ class _Client {
final compilerOptions = fe.CompilerOptions() final compilerOptions = fe.CompilerOptions()
..environmentDefines = {} ..environmentDefines = {}
..fileSystem = _FileSystem(_channel, _dills) ..fileSystem = _FileSystem(_channel, _dills)
..nnbdMode = fe.NnbdMode.Strong
..sdkSummary = Uri.parse(sdkSummaryUriStr) ..sdkSummary = Uri.parse(sdkSummaryUriStr)
..target = vm.VmTarget(fe.TargetFlags(enableNullSafety: true)); ..target = vm.VmTarget(fe.TargetFlags(enableNullSafety: true));