From 8a5b4234458144033dc6182170abdf14fdfe615e Mon Sep 17 00:00:00 2001 From: Chase Latta Date: Tue, 20 Oct 2020 14:47:01 -0700 Subject: [PATCH] [fuchsia] opt-out null-safety in standalone scripts (#22009) --- shell/platform/fuchsia/dart/compiler.dart | 2 ++ shell/platform/fuchsia/flutter/collect_traces.dart | 2 ++ shell/platform/fuchsia/flutter/kernel/extract_far.dart | 2 ++ .../runtime/dart/profiler_symbols/dart_profiler_symbols.dart | 2 ++ 4 files changed, 8 insertions(+) diff --git a/shell/platform/fuchsia/dart/compiler.dart b/shell/platform/fuchsia/dart/compiler.dart index c955e218812..b0ab6f2db0b 100644 --- a/shell/platform/fuchsia/dart/compiler.dart +++ b/shell/platform/fuchsia/dart/compiler.dart @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.9 + import 'dart:async'; import 'dart:io'; diff --git a/shell/platform/fuchsia/flutter/collect_traces.dart b/shell/platform/fuchsia/flutter/collect_traces.dart index cfb67e09f78..ed017218e17 100644 --- a/shell/platform/fuchsia/flutter/collect_traces.dart +++ b/shell/platform/fuchsia/flutter/collect_traces.dart @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.9 + import 'dart:io'; import 'dart:convert'; diff --git a/shell/platform/fuchsia/flutter/kernel/extract_far.dart b/shell/platform/fuchsia/flutter/kernel/extract_far.dart index 4bfd72a3e46..442f64be4bd 100644 --- a/shell/platform/fuchsia/flutter/kernel/extract_far.dart +++ b/shell/platform/fuchsia/flutter/kernel/extract_far.dart @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.9 + import "dart:io"; import "package:args/args.dart"; diff --git a/shell/platform/fuchsia/runtime/dart/profiler_symbols/dart_profiler_symbols.dart b/shell/platform/fuchsia/runtime/dart/profiler_symbols/dart_profiler_symbols.dart index 0e6af0f48e9..c0436c096ab 100644 --- a/shell/platform/fuchsia/runtime/dart/profiler_symbols/dart_profiler_symbols.dart +++ b/shell/platform/fuchsia/runtime/dart/profiler_symbols/dart_profiler_symbols.dart @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.9 + // On Fuchsia, in lieu of the ELF dynamic symbol table consumed through dladdr, // the Dart VM profiler consumes symbols produced by this tool, which have the // format