Skip to content

Commit aa246f6

Browse files
nateboschcommit-bot@chromium.org
authored andcommitted
Add return types on all main declarations
Reduces the noise when disallowing implicit dynamic. Change-Id: I98b03cb675ecd4b9e7f4135efa274fb57eb87832 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/104164 Reviewed-by: Nicholas Shahan <[email protected]> Commit-Queue: Nate Bosch <[email protected]>
1 parent ded6933 commit aa246f6

File tree

65 files changed

+69
-65
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+69
-65
lines changed

pkg/dev_compiler/test/js/builder_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ _checkStatement(String src) => _check(_parser(src).parseStatement(), src);
1313

1414
_checkExpression(String src) => _check(_parser(src).parseExpression(), src);
1515

16-
main() {
16+
void main() {
1717
group('MiniJsParser', () {
1818
// TODO(ochafik): Add more coverage.
1919
test('parses classes with complex members', () {

pkg/dev_compiler/test/options/options_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ final sdkSummaryFile = path.join(repoDirectory, 'gen', 'sdk', 'ddc_sdk.sum');
2424

2525
final sdkSummaryArgs = ['--$sdkSummaryPathOption', sdkSummaryFile];
2626

27-
main() {
27+
void main() {
2828
test('basic', () {
2929
var options = AnalyzerOptions.basic()..analysisRoot = optionsDir;
3030
var driver = CompilerAnalysisDriver(options);

pkg/dev_compiler/test/sourcemap/sourcemaps_ddc_suite.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,5 @@ class DevCompilerRunner implements CompilerRunner {
8585
}
8686
}
8787

88-
main(List<String> arguments) => runMe(arguments, createContext, "testing.json");
88+
void main(List<String> arguments) =>
89+
runMe(arguments, createContext, "testing.json");

pkg/dev_compiler/test/sourcemap/sourcemaps_ddk_suite.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,5 @@ class DevCompilerRunner implements CompilerRunner {
104104
}
105105
}
106106

107-
main(List<String> arguments) => runMe(arguments, createContext, "testing.json");
107+
void main(List<String> arguments) =>
108+
runMe(arguments, createContext, "testing.json");

pkg/dev_compiler/test/sourcemap/stacktrace_ddc_suite.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ class StackTraceContext extends ChainContextWithCleanupHelper {
1919
];
2020
}
2121

22-
main(List<String> arguments) => runMe(arguments, createContext, "testing.json");
22+
void main(List<String> arguments) =>
23+
runMe(arguments, createContext, "testing.json");

pkg/dev_compiler/test/sourcemap/stacktrace_ddk_suite.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ class StackTraceContext extends ChainContextWithCleanupHelper
2828
}
2929
}
3030

31-
main(List<String> arguments) => runMe(arguments, createContext, "testing.json");
31+
void main(List<String> arguments) =>
32+
runMe(arguments, createContext, "testing.json");

pkg/dev_compiler/test/sourcemap/stacktrace_testfiles/null_instance_field.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
main() {
5+
void main() {
66
/*1:main*/ test(Class());
77
}
88

pkg/dev_compiler/test/sourcemap/stacktrace_testfiles/null_interceptor_field.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class MyType {
66
get length => 3; // ensures we build an interceptor for `.length`
77
}
88

9-
main() {
9+
void main() {
1010
confuse('').trim(); // includes some code above the interceptors
1111
confuse([]).length;
1212
confuse(MyType()).length;

pkg/dev_compiler/test/sourcemap/stacktrace_testfiles/rethrow.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
main() {
5+
void main() {
66
/*1:main*/ test();
77
}
88

pkg/dev_compiler/test/sourcemap/stacktrace_testfiles/throw_in_async.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
main() {
5+
void main() {
66
/*1:main*/ test();
77
}
88

0 commit comments

Comments
 (0)