Drop unnecessary @dart annotations (flutter/engine#34760)

This commit is contained in:
Dan Field
2022-07-19 15:07:04 -07:00
committed by GitHub
parent 45acf8cca8
commit f37da53cfb
30 changed files with 2 additions and 57 deletions

View File

@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.14
part of dart.ui;
// TODO(dnfield): Update this if/when we default this to on in the tool,

View File

@@ -4,8 +4,6 @@
// KEEP THIS SYNCHRONIZED WITH ../web_ui/lib/channel_buffers.dart
// @dart = 2.14
part of dart.ui;
/// Signature for [ChannelBuffers.drain]'s `callback` argument.

View File

@@ -1,8 +1,6 @@
// Copyright 2013 The Flutter Authors. 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.14
part of dart.ui;
/// An opaque object representing a composited scene.

View File

@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.14
part of dart.ui;
/// Base class for [Size] and [Offset], which are both ways to describe

View File

@@ -1,8 +1,6 @@
// Copyright 2013 The Flutter Authors. 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.14
part of dart.ui;
class _HashEnd { const _HashEnd(); }

View File

@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.14
part of dart.ui;
@pragma('vm:entry-point')

View File

@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.14
part of dart.ui;
/// Static methods to allow for simple sharing of [SendPort]s across [Isolate]s.

View File

@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.14
part of dart.ui;
/// The type of a key event.

View File

@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.14
part of dart.ui;
/// Linearly interpolate between two numbers, `a` and `b`, by an extrapolation

View File

@@ -1,8 +1,6 @@
// Copyright 2013 The Flutter Authors. 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.14
part of dart.ui;
// ignore_for_file: avoid_classes_with_only_static_members

View File

@@ -1,8 +1,6 @@
// Copyright 2013 The Flutter Authors. 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.14
part of dart.ui;
// Some methods in this file assert that their arguments are not null. These

View File

@@ -1,8 +1,6 @@
// Copyright 2013 The Flutter Authors. 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.14
part of dart.ui;
/// Signature of callbacks that have no arguments and return no data.

View File

@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.14
part of dart.ui;
/// A wrapper for a raw callback handle.

View File

@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.14
part of dart.ui;
/// How the pointer has changed since the last report.

View File

@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.14
part of dart.ui;
/// The possible actions that can be conveyed from the operating system

View File

@@ -1,8 +1,6 @@
// Copyright 2013 The Flutter Authors. 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.14
part of dart.ui;
/// Whether to slant the glyphs in the font

View File

@@ -9,7 +9,6 @@
/// This library exposes the lowest-level services that Flutter frameworks use
/// to bootstrap applications, such as classes for driving the input, graphics
/// text, layout, and rendering subsystems.
// @dart = 2.14
library dart.ui;
import 'dart:_spirv' as spv;

View File

@@ -1,8 +1,6 @@
// Copyright 2013 The Flutter Authors. 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.14
part of dart.ui;
/// A view into which a Flutter [Scene] is drawn.

View File

@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.12
import 'package:async_helper/async_minitest.dart'; // ignore: unused_import
import 'package:expect/expect.dart'; // ignore: unused_import

View File

@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.12
import 'package:async_helper/async_minitest.dart';
import 'package:expect/expect.dart';

View File

@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.12
import 'dart:async';
import 'dart:io' show stdout;
import 'dart:isolate';

View File

@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.12
import 'dart:async';
import 'dart:collection';
import 'dart:io' show stdout;

View File

@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.12
import 'dart:async';
import 'dart:collection';

View File

@@ -165,7 +165,7 @@ List<String> _getBlockStartingWith({
void visitUIUnits(String flutterRoot, AstVisitor<void> visitor) {
String uiRoot = '$flutterRoot/lib/ui';
final FeatureSet analyzerFeatures = FeatureSet.fromEnableFlags2(
sdkLanguageVersion: Version.parse('2.12.0'),
sdkLanguageVersion: Version.parse('2.17.0'),
flags: <String>['non-nullable'],
);
final ParseStringResult uiResult = parseFile(path: '$uiRoot/ui.dart', featureSet: analyzerFeatures);

View File

@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.12
// Runs clang-tidy on files with changes.
//
// Basic Usage:

View File

@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.12
import 'dart:io' as io;
import 'package:githooks/githooks.dart';

View File

@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.12
import 'dart:io' as io;
import 'package:args/args.dart';

View File

@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.12
import 'dart:io' as io;
import 'package:args/command_runner.dart';

View File

@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.12
import 'dart:io' as io;
import 'package:githooks/githooks.dart';

View File

@@ -19,7 +19,7 @@ const Set<String> _kObjectMembers = <String>{
CompilationUnit _parseAndCheckDart(String path) {
final FeatureSet analyzerFeatures = FeatureSet.fromEnableFlags2(
sdkLanguageVersion: Version.parse('2.12.0'),
sdkLanguageVersion: Version.parse('2.17.0'),
flags: <String>['non-nullable'],
);
if (!analyzerFeatures.isEnabled(Feature.non_nullable)) {