Skip to content

Commit

Permalink
Drop unnecessary @Dart annotations (flutter#34760)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnfield authored Jul 19, 2022
1 parent a85ad92 commit afbd1ae
Show file tree
Hide file tree
Showing 30 changed files with 2 additions and 57 deletions.
2 changes: 0 additions & 2 deletions lib/ui/annotations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 0 additions & 2 deletions lib/ui/channel_buffers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 0 additions & 2 deletions lib/ui/compositing.dart
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 0 additions & 2 deletions lib/ui/geometry.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions lib/ui/hash_codes.dart
Original file line number Diff line number Diff line change
@@ -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(); }
Expand Down
2 changes: 0 additions & 2 deletions lib/ui/hooks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 0 additions & 2 deletions lib/ui/isolate_name_server.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 0 additions & 2 deletions lib/ui/key.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 0 additions & 2 deletions lib/ui/lerp.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions lib/ui/natives.dart
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 0 additions & 2 deletions lib/ui/painting.dart
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 0 additions & 2 deletions lib/ui/platform_dispatcher.dart
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 0 additions & 2 deletions lib/ui/plugins.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 0 additions & 2 deletions lib/ui/pointer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 0 additions & 2 deletions lib/ui/semantics.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions lib/ui/text.dart
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion lib/ui/ui.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions lib/ui/window.dart
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 0 additions & 2 deletions testing/litetest/lib/litetest.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 0 additions & 2 deletions testing/litetest/lib/src/matchers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
2 changes: 0 additions & 2 deletions testing/litetest/lib/src/test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 0 additions & 2 deletions testing/litetest/lib/src/test_suite.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions testing/litetest/test/litetest_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
2 changes: 1 addition & 1 deletion tools/api_check/lib/apicheck.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 0 additions & 2 deletions tools/clang_tidy/bin/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 0 additions & 2 deletions tools/githooks/bin/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 0 additions & 2 deletions tools/githooks/lib/githooks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 0 additions & 2 deletions tools/githooks/lib/src/pre_push_command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 0 additions & 2 deletions tools/githooks/test/githooks_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion web_sdk/test/api_conform_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit afbd1ae

Please sign in to comment.