forked from firka/flutter
Drop unnecessary @dart annotations (flutter/engine#34760)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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(); }
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user