From 76c8886ff586448da32fa9bfbcfec5a82f50e879 Mon Sep 17 00:00:00 2001 From: Konstantin Shcheglov Date: Wed, 19 Oct 2022 21:40:13 +0000 Subject: [PATCH] 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 Reviewed-by: Siva Annamalai --- pkg/frontend_server/lib/src/binary_protocol.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/frontend_server/lib/src/binary_protocol.dart b/pkg/frontend_server/lib/src/binary_protocol.dart index 714dc053198..f3dd1f6d163 100644 --- a/pkg/frontend_server/lib/src/binary_protocol.dart +++ b/pkg/frontend_server/lib/src/binary_protocol.dart @@ -8,6 +8,7 @@ import 'dart:io' as io; import 'dart:typed_data'; 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/file_system.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() ..environmentDefines = {} ..fileSystem = _FileSystem(_channel, _dills) + ..nnbdMode = fe.NnbdMode.Strong ..sdkSummary = Uri.parse(sdkSummaryUriStr) ..target = vm.VmTarget(fe.TargetFlags(enableNullSafety: true));