[dart2js] Migrate js_backend/js_interop_analysis.dart to null safety.

Change-Id: I0c8b34881be46c6204e77526ce26f14b811d9b4b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/268162
Reviewed-by: Mayank Patke <fishythefish@google.com>
This commit is contained in:
Nate Biggs 2022-11-07 18:59:38 +00:00 committed by Commit Queue
parent 0cb784cfea
commit 60a6ad320d

View file

@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// @dart = 2.10
/// Analysis to determine how to generate code for typed JavaScript interop.
library compiler.src.js_backend.js_interop_analysis;
@ -16,7 +14,7 @@ import '../universe/world_builder.dart' show SelectorConstraints;
import 'namer_interfaces.dart';
import 'native_data.dart';
jsAst.Statement buildJsInteropBootstrap(
jsAst.Statement? buildJsInteropBootstrap(
CodegenWorld codegenWorld, NativeBasicData nativeBasicData, Namer namer) {
if (!nativeBasicData.isJsInteropUsed) return null;
List<jsAst.Statement> statements = [];