Skip to content

Commit 4f4f867

Browse files
devoncarewCommit Queue
authored andcommitted
[deps] rev package:lints; address 'unnecessary_underscores' lints
Change-Id: I866bf007f50eafcc3c2e61d49895a0244c14eff3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/412760 Commit-Queue: Devon Carew <[email protected]> Reviewed-by: Phil Quitslund <[email protected]>
1 parent a59bae3 commit 4f4f867

File tree

5 files changed

+27
-17
lines changed

5 files changed

+27
-17
lines changed

DEPS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ vars = {
129129
### /third_party/pkg dependencies
130130
# 'tools/rev_sdk_deps.dart' will rev pkg dependencies to their latest; put an
131131
# EOL comment after a dependency to instead pin at the current revision.
132-
"core_rev": "0b2bd3fcd7f3e082f4cc9b14c19ffa93894b85ae",
132+
"core_rev": "15c7fe9958b95998ba2f5a4ad1beab66b9d815fb",
133133
"dartdoc_rev": "34561d6ebf5fa89ca1f93b981de96a75ff573562",
134134
"ecosystem_rev": "06bbbffc1dae26164ee0a9603d0a30af620b84d0",
135135
"flute_rev": "e4ea0459a7debae5e9592c85141707b01fac86c9",

pkg/compiler/lib/src/phase/load_kernel.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ void _doTransformsOnKernelLoad(
186186
final classHierarchy = ir.ClassHierarchy(
187187
component,
188188
coreTypes,
189-
onAmbiguousSupertypes: (_, __, ___) {},
189+
onAmbiguousSupertypes: (_, _, _) {},
190190
);
191191
ir.TypeEnvironment typeEnvironment = ir.TypeEnvironment(
192192
coreTypes,

pkg/compiler/pubspec.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
name: compiler
44
# This package is not intended for consumption on pub.dev. DO NOT publish.
55
publish_to: none
6+
67
environment:
7-
sdk: '^3.7.0'
8+
sdk: ^3.7.0
89

910
# Use 'any' constraints here; we get our versions from the DEPS file.
1011
dependencies:

tools/pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: sdk_tools
22
description: Internal tools for building and working on the sdk.
3+
34
environment:
45
sdk: ^3.5.0
56

tools/run_offsets_extractor.dart

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ void main(List<String> args) async {
2121
final footer = old.substring(old.lastIndexOf('\n#endif '));
2222

2323
// Build all configurations
24-
await forAllConfigurationsMode(
25-
(String buildDir, String mode, String arch) async {
24+
await forAllConfigurationsMode((
25+
String buildDir,
26+
String mode,
27+
String arch,
28+
) async {
2629
print('Building $buildDir');
2730
await run([
2831
'tools/build.py',
@@ -31,19 +34,20 @@ void main(List<String> args) async {
3134
'-m$mode',
3235
'--no-rbe',
3336
'offsets_extractor',
34-
'offsets_extractor_aotruntime'
37+
'offsets_extractor_aotruntime',
3538
]);
3639
print('Building $buildDir - done');
3740
});
3841

39-
final (jit, aot) = await (
40-
forAllConfigurationsMode((String buildDir, _, __) async {
41-
return await run(['$buildDir/offsets_extractor']);
42-
}).then<String>((lines) => lines.join('\n')),
43-
forAllConfigurationsMode((String buildDir, _, __) async {
44-
return await run(['$buildDir/offsets_extractor_aotruntime']);
45-
}).then<String>((lines) => lines.join('\n')),
46-
).wait;
42+
final (jit, aot) =
43+
await (
44+
forAllConfigurationsMode((String buildDir, _, _) async {
45+
return await run(['$buildDir/offsets_extractor']);
46+
}).then<String>((lines) => lines.join('\n')),
47+
forAllConfigurationsMode((String buildDir, _, _) async {
48+
return await run(['$buildDir/offsets_extractor_aotruntime']);
49+
}).then<String>((lines) => lines.join('\n')),
50+
).wait;
4751

4852
if (exitCode == 0) {
4953
final output = StringBuffer();
@@ -59,7 +63,8 @@ void main(List<String> args) async {
5963
}
6064

6165
Future<List<T>> forAllConfigurationsMode<T>(
62-
Future<T> Function(String buildDir, String mode, String arch) fun) async {
66+
Future<T> Function(String buildDir, String mode, String arch) fun,
67+
) async {
6368
final archs = [
6469
'simarm',
6570
'x64',
@@ -81,8 +86,11 @@ Future<List<T>> forAllConfigurationsMode<T>(
8186
}
8287

8388
Future<String> run(List<String> args) async {
84-
final result =
85-
await Process.run(args.first, args.skip(1).toList(), runInShell: true);
89+
final result = await Process.run(
90+
args.first,
91+
args.skip(1).toList(),
92+
runInShell: true,
93+
);
8694
if (result.exitCode != 0) {
8795
exitCode = result.exitCode;
8896
print('Running ${args.join(' ')} has failed with exit code $exitCode:');

0 commit comments

Comments
 (0)