From ca8b500908540d1f8cc7cee156e33561d9428264 Mon Sep 17 00:00:00 2001 From: Nicholas Shahan Date: Tue, 19 Jul 2022 18:45:44 +0000 Subject: [PATCH] [ddc] Migrate dartdevc entrypoint to null safety Issue: https://github.com/dart-lang/sdk/issues/46617 Change-Id: I6ba216ba41a6c115f9c46908378d21bee0940bdc Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/250349 Commit-Queue: Nicholas Shahan Reviewed-by: Mark Zhou --- pkg/dev_compiler/bin/dartdevc.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/dev_compiler/bin/dartdevc.dart b/pkg/dev_compiler/bin/dartdevc.dart index 09d9ca8e588..7ca53761df1 100644 --- a/pkg/dev_compiler/bin/dartdevc.dart +++ b/pkg/dev_compiler/bin/dartdevc.dart @@ -3,8 +3,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.9 - /// Command line entry point for Dart Development Compiler (dartdevc), used to /// compile a collection of dart libraries into a single JS module @@ -16,6 +14,6 @@ import 'package:dev_compiler/ddc.dart' as ddc; /// /// [sendPort] may be passed in when started in an isolate. If provided, it is /// used for bazel worker communication instead of stdin/stdout. -Future main(List args, [SendPort sendPort]) async { +Future main(List args, [SendPort? sendPort]) async { return ddc.internalMain(args, sendPort); }