Files
sdk/pkg/front_end/tool/update_all.dart
T
Jens Johansen 1197e15a7e [CFE] Enable avoid_void_async lint
This CL enables the avoid_void_async lint in the CFE, makes the needed
changes and adds the missing `await` (because the lint
`unawaited_futures` doesn't react to void async methods).

Change-Id: Iffc1f173badd3c2d48356ee02e81a9aed492ce5d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213481
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2021-09-23 11:58:18 +00:00

33 lines
1.4 KiB
Dart

// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// 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.
import 'package:_fe_analyzer_shared/src/testing/id_testing.dart' as id;
import 'update_expectations.dart' as expectations;
const List<String> idTests = <String>[
'pkg/front_end/test/covariance_check/covariance_check_test.dart',
'pkg/front_end/test/extensions/extensions_test.dart',
'pkg/front_end/test/id_testing/id_testing_test.dart',
'pkg/front_end/test/id_tests/assigned_variables_test.dart',
'pkg/front_end/test/id_tests/constant_test.dart',
'pkg/front_end/test/id_tests/definite_assignment_test.dart',
'pkg/front_end/test/id_tests/definite_unassignment_test.dart',
'pkg/front_end/test/id_tests/inheritance_test.dart',
'pkg/front_end/test/id_tests/nullability_test.dart',
'pkg/front_end/test/id_tests/reachability_test.dart',
'pkg/front_end/test/id_tests/type_promotion_test.dart',
'pkg/front_end/test/id_tests/why_not_promoted_test.dart',
'pkg/front_end/test/language_versioning/language_versioning_test.dart',
'pkg/front_end/test/patching/patching_test.dart',
'pkg/front_end/test/static_types/static_type_test.dart',
];
Future<void> main() async {
// Update all tests based on expectation files.
await expectations.main(const <String>[]);
// Update all id-tests.
await id.updateAllTests(idTests);
}