Version 3.7.0-174.0.dev Merge 5bb9e922dbdcdb38c7c9ac6786fcacb70c769765 into dev
diff --git a/pkg/analysis_server/test/src/computer/closing_labels_computer_test.dart b/pkg/analysis_server/test/src/computer/closing_labels_computer_test.dart index ec94e57..a3e5424 100644 --- a/pkg/analysis_server/test/src/computer/closing_labels_computer_test.dart +++ b/pkg/analysis_server/test/src/computer/closing_labels_computer_test.dart
@@ -282,6 +282,42 @@ _compareLabels(labels, content, expectedLabelCount: 2); } + Future<void> test_nullAwareElement_inList() async { + var content = ''' +void myMethod() { + return /*1*/new Wrapper( + Widget.createWidget(/*2*/<Widget>[ + 1, + ?null, + 2 + ]/*2:<Widget>[]*/) + )/*1:Wrapper*/; +} +'''; + + var labels = await _computeElements(content); + _compareLabels(labels, content, expectedLabelCount: 2); + } + + Future<void> test_nullAwareElement_inList_containingList() async { + var content = ''' +void myMethod() { + return /*1*/new Wrapper( + Widget.createWidget(/*2*/<Widget>[ + 1, + ?Widget.createWidget(/*3*/<Widget>[ + 3 + ]/*3:<Widget>[]*/), + 2 + ]/*2:<Widget>[]*/) + )/*1:Wrapper*/; +} +'''; + + var labels = await _computeElements(content); + _compareLabels(labels, content, expectedLabelCount: 3); + } + Future<void> test_prefixedConstConstructor() async { var content = """ import 'dart:async' as a;
diff --git a/tests/language/async/await_syntax_test.dart b/tests/language/async/await_syntax_test.dart index c7fc8f5..5dbdb3e 100644 --- a/tests/language/async/await_syntax_test.dart +++ b/tests/language/async/await_syntax_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test async/await syntax. import 'dart:async' show Stream;
diff --git a/tests/language/async/await_test.dart b/tests/language/async/await_test.dart index 8ee995b..51d4458 100644 --- a/tests/language/async/await_test.dart +++ b/tests/language/async/await_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // VMOptions= // VMOptions=--optimization-counter-threshold=20
diff --git a/tests/language/async/continue_label_test.dart b/tests/language/async/continue_label_test.dart index 7a7afee..1c78c48 100644 --- a/tests/language/async/continue_label_test.dart +++ b/tests/language/async/continue_label_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/async_helper.dart"; import "package:expect/expect.dart";
diff --git a/tests/language/async/switch_test.dart b/tests/language/async/switch_test.dart index 4ef8187..f6a42c3 100644 --- a/tests/language/async/switch_test.dart +++ b/tests/language/async/switch_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import "dart:async"; import "package:expect/async_helper.dart"; import "package:expect/expect.dart";
diff --git a/tests/language/async/throw_in_catch_test.dart b/tests/language/async/throw_in_catch_test.dart index dd977fc..d32438e 100644 --- a/tests/language/async/throw_in_catch_test.dart +++ b/tests/language/async/throw_in_catch_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import "dart:async"; import "package:expect/async_helper.dart"; import "package:expect/expect.dart";
diff --git a/tests/language/async_star/async_star_invalid_test.dart b/tests/language/async_star/async_star_invalid_test.dart index 3345de2..8fad724 100644 --- a/tests/language/async_star/async_star_invalid_test.dart +++ b/tests/language/async_star/async_star_invalid_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that various invalid uses of `yield` are disallowed. import "dart:async";
diff --git a/tests/language/call/method_function_typed_value_test.dart b/tests/language/call/method_function_typed_value_test.dart index 7aa9ed8..98bdaa7 100644 --- a/tests/language/call/method_function_typed_value_test.dart +++ b/tests/language/call/method_function_typed_value_test.dart
@@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program to test arithmetic operations. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; int f(int i) => 2 * i;
diff --git a/tests/language/call/method_implicit_tear_off_test.dart b/tests/language/call/method_implicit_tear_off_test.dart index 24446cb..6ab3bb3 100644 --- a/tests/language/call/method_implicit_tear_off_test.dart +++ b/tests/language/call/method_implicit_tear_off_test.dart
@@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program to test arithmetic operations. +// Formatting can break multitests, so don't format them. +// dart format off + import "dart:async"; import "package:expect/expect.dart";
diff --git a/tests/language/call/method_must_not_be_field_test.dart b/tests/language/call/method_must_not_be_field_test.dart index 05cbce9..92842ff 100644 --- a/tests/language/call/method_must_not_be_field_test.dart +++ b/tests/language/call/method_must_not_be_field_test.dart
@@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program to test arithmetic operations. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class C {
diff --git a/tests/language/call/method_must_not_be_getter_test.dart b/tests/language/call/method_must_not_be_getter_test.dart index ac070dd..e942100 100644 --- a/tests/language/call/method_must_not_be_getter_test.dart +++ b/tests/language/call/method_must_not_be_getter_test.dart
@@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program to test arithmetic operations. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class C {
diff --git a/tests/language/call/nonexistent_static_test.dart b/tests/language/call/nonexistent_static_test.dart index 603bdde..74bf285 100644 --- a/tests/language/call/nonexistent_static_test.dart +++ b/tests/language/call/nonexistent_static_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; // When attempting to call a nonexistent static method, getter or setter, check
diff --git a/tests/language/call/operator_test.dart b/tests/language/call/operator_test.dart index fc82166..e85d630 100644 --- a/tests/language/call/operator_test.dart +++ b/tests/language/call/operator_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; // simple test with no types in signature
diff --git a/tests/language/class/cycle2_test.dart b/tests/language/class/cycle2_test.dart index 78f5ff0..fe44caf 100644 --- a/tests/language/class/cycle2_test.dart +++ b/tests/language/class/cycle2_test.dart
@@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Check fail because of cycles in super class relationship. +// Formatting can break multitests, so don't format them. +// dart format off + class C extends B {} class A extends B {}
diff --git a/tests/language/class/cycle_test.dart b/tests/language/class/cycle_test.dart index dbc11a0..5b022a9 100644 --- a/tests/language/class/cycle_test.dart +++ b/tests/language/class/cycle_test.dart
@@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Check fail because of cycles in super class relationship. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class Foo implements Bar {}
diff --git a/tests/language/class/literal_static_test.dart b/tests/language/class/literal_static_test.dart index 27b6149..64b2e02 100644 --- a/tests/language/class/literal_static_test.dart +++ b/tests/language/class/literal_static_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; // Test class literal expressions.
diff --git a/tests/language/class/literal_test.dart b/tests/language/class/literal_test.dart index 5b1c12a..826b230 100644 --- a/tests/language/class/literal_test.dart +++ b/tests/language/class/literal_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; // Test class literal expressions.
diff --git a/tests/language/class/syntax_test.dart b/tests/language/class/syntax_test.dart index e5a2e9b..d674113 100644 --- a/tests/language/class/syntax_test.dart +++ b/tests/language/class/syntax_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + main() { new ClassSyntaxTest(); }
diff --git a/tests/language/closure/partial_tearoff_instantiation_test.dart b/tests/language/closure/partial_tearoff_instantiation_test.dart index 3561630..74640a4 100644 --- a/tests/language/closure/partial_tearoff_instantiation_test.dart +++ b/tests/language/closure/partial_tearoff_instantiation_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; typedef F1 = void Function<T>(T);
diff --git a/tests/language/compile_time_constant/compile_time_constant10_test.dart b/tests/language/compile_time_constant/compile_time_constant10_test.dart index 19c967a..94abdcd 100644 --- a/tests/language/compile_time_constant/compile_time_constant10_test.dart +++ b/tests/language/compile_time_constant/compile_time_constant10_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; // Test that 'identical(a,b)' is a compile-time constant.
diff --git a/tests/language/compile_time_constant/compile_time_constant13_test.dart b/tests/language/compile_time_constant/compile_time_constant13_test.dart index 189abbd..1a781f3 100644 --- a/tests/language/compile_time_constant/compile_time_constant13_test.dart +++ b/tests/language/compile_time_constant/compile_time_constant13_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + class A { final x; //# 01: ok //# 02: compile-time error
diff --git a/tests/language/compile_time_constant/static4_test.dart b/tests/language/compile_time_constant/static4_test.dart index 8436b05..b3689af 100644 --- a/tests/language/compile_time_constant/static4_test.dart +++ b/tests/language/compile_time_constant/static4_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + class A { final _x; const A.a1(
diff --git a/tests/language/compile_time_constant/static5_test.dart b/tests/language/compile_time_constant/static5_test.dart index c1666e8..549608c 100644 --- a/tests/language/compile_time_constant/static5_test.dart +++ b/tests/language/compile_time_constant/static5_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + class A { const A(); }
diff --git a/tests/language/const/cast1_test.dart b/tests/language/const/cast1_test.dart index 2363f3f..2e98135 100644 --- a/tests/language/const/cast1_test.dart +++ b/tests/language/const/cast1_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + /// Implicit casts in constants are supported and treated as compile-time errors /// if they are not valid.
diff --git a/tests/language/const/cast2_test.dart b/tests/language/const/cast2_test.dart index 326a884..0eeaac9 100644 --- a/tests/language/const/cast2_test.dart +++ b/tests/language/const/cast2_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + /// Explicit casts in constants are supported and treated as compile-time errors /// if they are not valid.
diff --git a/tests/language/const/constructor2_test.dart b/tests/language/const/constructor2_test.dart index e8a5d63..3df9628 100644 --- a/tests/language/const/constructor2_test.dart +++ b/tests/language/const/constructor2_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Regression test for issue 14348. class A<T> {
diff --git a/tests/language/const/double_in_int_op_test.dart b/tests/language/const/double_in_int_op_test.dart index 9ff3279..ce95356 100644 --- a/tests/language/const/double_in_int_op_test.dart +++ b/tests/language/const/double_in_int_op_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + main() { const dynamic i1 = 3;
diff --git a/tests/language/const/error_multiply_initialized_test.dart b/tests/language/const/error_multiply_initialized_test.dart index 490ea0f..d6d3b66 100644 --- a/tests/language/const/error_multiply_initialized_test.dart +++ b/tests/language/const/error_multiply_initialized_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // If a constant constructor contains an initializer, or an initializing // formal, for a final field which itself has an initializer at its // declaration, then a compile-time error should be reported regardless of
diff --git a/tests/language/const/for_in_variable_test.dart b/tests/language/const/for_in_variable_test.dart index 2eb63b7..0c0b067 100644 --- a/tests/language/const/for_in_variable_test.dart +++ b/tests/language/const/for_in_variable_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + main() { for ( const //# 01: compile-time error
diff --git a/tests/language/const/switch_test.dart b/tests/language/const/switch_test.dart index c4048c7..2f99624 100644 --- a/tests/language/const/switch_test.dart +++ b/tests/language/const/switch_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import 'package:expect/expect.dart'; class C {
diff --git a/tests/language/const/types_test.dart b/tests/language/const/types_test.dart index 3199c0c..803ff45 100644 --- a/tests/language/const/types_test.dart +++ b/tests/language/const/types_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test handling of malformed types in constant expressions. use(x) {}
diff --git a/tests/language/constants_2018/const_type_test.dart b/tests/language/constants_2018/const_type_test.dart index c6c3f33..d01aee2 100644 --- a/tests/language/constants_2018/const_type_test.dart +++ b/tests/language/constants_2018/const_type_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Tests that types do matter when an expression is evaluated as constant. main() {
diff --git a/tests/language/constants_2018/constant_type_literal_test.dart b/tests/language/constants_2018/constant_type_literal_test.dart index 99a26db..eacea69 100644 --- a/tests/language/constants_2018/constant_type_literal_test.dart +++ b/tests/language/constants_2018/constant_type_literal_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Tests that non-deferred type literals are constant expressions. import "dart:core";
diff --git a/tests/language/constants_2018/constant_types_test.dart b/tests/language/constants_2018/constant_types_test.dart index 44a4d5f..427fd43 100644 --- a/tests/language/constants_2018/constant_types_test.dart +++ b/tests/language/constants_2018/constant_types_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Tests that in some positions only constant types are allowed, so not // type parameters. But in other positions potentially constant types are // allowed, including type parameters.
diff --git a/tests/language/constants_2018/equals_test.dart b/tests/language/constants_2018/equals_test.dart index 1610c45..0bb6672 100644 --- a/tests/language/constants_2018/equals_test.dart +++ b/tests/language/constants_2018/equals_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Tests that equality is allowed for receivers of specific types. import "package:expect/expect.dart";
diff --git a/tests/language/constants_2018/potential_const_dynamic_test.dart b/tests/language/constants_2018/potential_const_dynamic_test.dart index 228701e..791c74a 100644 --- a/tests/language/constants_2018/potential_const_dynamic_test.dart +++ b/tests/language/constants_2018/potential_const_dynamic_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Tests that a dynamic type does not affect whether an expression is // potentially constant, the actual type of the value of an expression // only matters if the expression is evaluated as a constant.
diff --git a/tests/language/constants_2018/potential_const_type_test.dart b/tests/language/constants_2018/potential_const_type_test.dart index e4a26ee..eaf6492 100644 --- a/tests/language/constants_2018/potential_const_type_test.dart +++ b/tests/language/constants_2018/potential_const_type_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Tests that types do not affect whether an expression is potentially // constant, they only matter if the expression is evaluated as a constant.
diff --git a/tests/language/constructor/duplicate_final_test.dart b/tests/language/constructor/duplicate_final_test.dart index 96c1d22..5bdccaf 100644 --- a/tests/language/constructor/duplicate_final_test.dart +++ b/tests/language/constructor/duplicate_final_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Check that duplicate initialization of a final field is a runtime error. class Class {
diff --git a/tests/language/constructor/explicit_instantiation_syntax_test.dart b/tests/language/constructor/explicit_instantiation_syntax_test.dart index 0556da9..18cdfe1 100644 --- a/tests/language/constructor/explicit_instantiation_syntax_test.dart +++ b/tests/language/constructor/explicit_instantiation_syntax_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import 'dart:core' hide dynamic; import 'dart:core' as core show dynamic;
diff --git a/tests/language/constructor/missing_const_constructor_test.dart b/tests/language/constructor/missing_const_constructor_test.dart index 123eccf..9a5daab 100644 --- a/tests/language/constructor/missing_const_constructor_test.dart +++ b/tests/language/constructor/missing_const_constructor_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test handling of unknown constructor in const expression. class GoodClass {
diff --git a/tests/language/constructor/name_test.dart b/tests/language/constructor/name_test.dart index 43e764f..8599aec 100644 --- a/tests/language/constructor/name_test.dart +++ b/tests/language/constructor/name_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + class Foo { Bar.Foo(); //# 01: compile-time error factory Bar(); //# 02: syntax error
diff --git a/tests/language/constructor/named_arguments_test.dart b/tests/language/constructor/named_arguments_test.dart index 369d24b..7d0f0d3 100644 --- a/tests/language/constructor/named_arguments_test.dart +++ b/tests/language/constructor/named_arguments_test.dart
@@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for default constructors. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; late String message;
diff --git a/tests/language/constructor/with_type_parameters_test.dart b/tests/language/constructor/with_type_parameters_test.dart index 8df1733..974a5b2 100644 --- a/tests/language/constructor/with_type_parameters_test.dart +++ b/tests/language/constructor/with_type_parameters_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + class Bar<T> { Bar() {} //# 01: ok Bar.boo() {} //# 02: ok
diff --git a/tests/language/control_flow_collections/await_for_syntax_error_test.dart b/tests/language/control_flow_collections/await_for_syntax_error_test.dart index d64303a..3bfb638 100644 --- a/tests/language/control_flow_collections/await_for_syntax_error_test.dart +++ b/tests/language/control_flow_collections/await_for_syntax_error_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + void main() { // Use await for in non-async function. var _ = [await for (var i in Stream<int>.empty()) i]; //# 01: compile-time error
diff --git a/tests/language/control_flow_collections/await_for_type_error_test.dart b/tests/language/control_flow_collections/await_for_type_error_test.dart index e63a52e..ef0c5a6 100644 --- a/tests/language/control_flow_collections/await_for_type_error_test.dart +++ b/tests/language/control_flow_collections/await_for_type_error_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + void main() { () async { // Non-Stream type.
diff --git a/tests/language/control_flow_collections/for_const_error_test.dart b/tests/language/control_flow_collections/for_const_error_test.dart index 3348639..d051af4 100644 --- a/tests/language/control_flow_collections/for_const_error_test.dart +++ b/tests/language/control_flow_collections/for_const_error_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + void main() { // For cannot be used in a const collection. const _ = [for (var i in []) 1]; //# 00: compile-time error
diff --git a/tests/language/control_flow_collections/if_const_error_test.dart b/tests/language/control_flow_collections/if_const_error_test.dart index bc1d0e2..3f7c100 100644 --- a/tests/language/control_flow_collections/if_const_error_test.dart +++ b/tests/language/control_flow_collections/if_const_error_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import 'dart:collection'; import 'package:expect/expect.dart';
diff --git a/tests/language/control_flow_collections/if_promotion_test.dart b/tests/language/control_flow_collections/if_promotion_test.dart index 382db01..e569b9c 100644 --- a/tests/language/control_flow_collections/if_promotion_test.dart +++ b/tests/language/control_flow_collections/if_promotion_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + class A { var a = "a"; }
diff --git a/tests/language/control_flow_collections/map_set_ambiguity_error_test.dart b/tests/language/control_flow_collections/map_set_ambiguity_error_test.dart index ae4fee4..32b538fe1 100644 --- a/tests/language/control_flow_collections/map_set_ambiguity_error_test.dart +++ b/tests/language/control_flow_collections/map_set_ambiguity_error_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test cases where the syntax is ambiguous between maps and sets when control // flow elements contain spreads. import 'dart:collection';
diff --git a/tests/language/control_flow_collections/syntax_error_test.dart b/tests/language/control_flow_collections/syntax_error_test.dart index 8b9fa65..cd95c22 100644 --- a/tests/language/control_flow_collections/syntax_error_test.dart +++ b/tests/language/control_flow_collections/syntax_error_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + void main() { // No then element. var _ = [if (true)]; //# 00: syntax error
diff --git a/tests/language/control_flow_collections/type_error_test.dart b/tests/language/control_flow_collections/type_error_test.dart index 63f6706..33c1481 100644 --- a/tests/language/control_flow_collections/type_error_test.dart +++ b/tests/language/control_flow_collections/type_error_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + void main() { // Non-Boolean if condition. var _ = <int>[if (1) 2]; //# 00: compile-time error
diff --git a/tests/language/covariant/covariant_test.dart b/tests/language/covariant/covariant_test.dart index 2ccc708..b342eea 100644 --- a/tests/language/covariant/covariant_test.dart +++ b/tests/language/covariant/covariant_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that `covariant` can be parsed (and ignored) by // dart2js and the VM. // This test only checks for non-strong mode behavior.
diff --git a/tests/language/covariant/setter_test.dart b/tests/language/covariant/setter_test.dart index 81911fd..949e5f2 100644 --- a/tests/language/covariant/setter_test.dart +++ b/tests/language/covariant/setter_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class A {}
diff --git a/tests/language/deferred/constraints_type_annotation_test.dart b/tests/language/deferred/constraints_type_annotation_test.dart index 43c8758..9a0d78a 100644 --- a/tests/language/deferred/constraints_type_annotation_test.dart +++ b/tests/language/deferred/constraints_type_annotation_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import 'package:expect/async_helper.dart'; import 'package:expect/expect.dart';
diff --git a/tests/language/deferred/type_dependency_test.dart b/tests/language/deferred/type_dependency_test.dart index 7d31d5f..e4016dc 100644 --- a/tests/language/deferred/type_dependency_test.dart +++ b/tests/language/deferred/type_dependency_test.dart
@@ -2,6 +2,9 @@ // source code is governed by a BSD-style license that can be found in // the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + /// Checks that lib1.fooX's dependencies on [A] via is-checks, as-expressions /// and type-annotations(in checked-mode) is correctly tracked.
diff --git a/tests/language/double_literals/double_literal_coercion_error_test.dart b/tests/language/double_literals/double_literal_coercion_error_test.dart index 6b574fc..44d2032 100644 --- a/tests/language/double_literals/double_literal_coercion_error_test.dart +++ b/tests/language/double_literals/double_literal_coercion_error_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Introduces a context with double as type. void notDouble([double value = 0.0]) { if (value != 0.0) throw "unreachable";
diff --git a/tests/language/dynamic/prefix_core_test.dart b/tests/language/dynamic/prefix_core_test.dart index 65da032..a2f56a6 100644 --- a/tests/language/dynamic/prefix_core_test.dart +++ b/tests/language/dynamic/prefix_core_test.dart
@@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Test explicit import of dart:core in the source code.. +// Formatting can break multitests, so don't format them. +// dart format off + library DynamicPrefixCoreTest.dart; import "package:expect/expect.dart";
diff --git a/tests/language/enum/duplicate_test.dart b/tests/language/enum/duplicate_test.dart index 7904652..2c5276e 100644 --- a/tests/language/enum/duplicate_test.dart +++ b/tests/language/enum/duplicate_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test for duplicate enums. library enum_duplicate_test;
diff --git a/tests/language/enum/syntax_test.dart b/tests/language/enum/syntax_test.dart index 250e1ae..e68e7e6 100644 --- a/tests/language/enum/syntax_test.dart +++ b/tests/language/enum/syntax_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Basic syntax test for enumeration types enum Color { red, orange, yellow, green }
diff --git a/tests/language/exception/code_after_try_is_executed_test.dart b/tests/language/exception/code_after_try_is_executed_test.dart index 57ffd84..85293ca 100644 --- a/tests/language/exception/code_after_try_is_executed_test.dart +++ b/tests/language/exception/code_after_try_is_executed_test.dart
@@ -5,6 +5,9 @@ // test cannot use Expect.throws, because Expect.throws uses the same // pattern. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; main() {
diff --git a/tests/language/exception/try_catch_on_syntax_test.dart b/tests/language/exception/try_catch_on_syntax_test.dart index 681080d..3d91a8b 100644 --- a/tests/language/exception/try_catch_on_syntax_test.dart +++ b/tests/language/exception/try_catch_on_syntax_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class MyException {}
diff --git a/tests/language/exception/try_catch_syntax_test.dart b/tests/language/exception/try_catch_syntax_test.dart index 5a192d1..af95d21 100644 --- a/tests/language/exception/try_catch_syntax_test.dart +++ b/tests/language/exception/try_catch_syntax_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + main() { testMissingCatch(); testMissingTry();
diff --git a/tests/language/export/duplicate_collision_test.dart b/tests/language/export/duplicate_collision_test.dart index 5948d9b..2968bc0 100644 --- a/tests/language/export/duplicate_collision_test.dart +++ b/tests/language/export/duplicate_collision_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import 'duplicate_import_libd.dart'; //# 01: compile-time error void main() {}
diff --git a/tests/language/extension_methods/extension_operation_in_const_test.dart b/tests/language/extension_methods/extension_operation_in_const_test.dart index 4dc4b6a..8a63961 100644 --- a/tests/language/extension_methods/extension_operation_in_const_test.dart +++ b/tests/language/extension_methods/extension_operation_in_const_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; extension on Object {
diff --git a/tests/language/extension_methods/static_extension_silly_types_test.dart b/tests/language/extension_methods/static_extension_silly_types_test.dart index 73a079d..ce5dfaf 100644 --- a/tests/language/extension_methods/static_extension_silly_types_test.dart +++ b/tests/language/extension_methods/static_extension_silly_types_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Tests extension methods on the non-function, non-class types. import "dart:async" show FutureOr;
diff --git a/tests/language/external_abstract_fields/abstract_fields_syntax_error_test.dart b/tests/language/external_abstract_fields/abstract_fields_syntax_error_test.dart index 71998c9..dc89d51 100644 --- a/tests/language/external_abstract_fields/abstract_fields_syntax_error_test.dart +++ b/tests/language/external_abstract_fields/abstract_fields_syntax_error_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Check that abstract instance variable declarations are abstract and // do not allow more than they should.
diff --git a/tests/language/external_abstract_fields/external_fields_syntax_error_test.dart b/tests/language/external_abstract_fields/external_fields_syntax_error_test.dart index 2ae3671..92fb71c 100644 --- a/tests/language/external_abstract_fields/external_fields_syntax_error_test.dart +++ b/tests/language/external_abstract_fields/external_fields_syntax_error_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Check that external variable declarations do not allow more // than they should.
diff --git a/tests/language/factory/redirection_test.dart b/tests/language/factory/redirection_test.dart index bddc5368..9a2a663 100644 --- a/tests/language/factory/redirection_test.dart +++ b/tests/language/factory/redirection_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class A<T> {
diff --git a/tests/language/factory/with_type_parameters_test.dart b/tests/language/factory/with_type_parameters_test.dart index e0c1583..88fc590 100644 --- a/tests/language/factory/with_type_parameters_test.dart +++ b/tests/language/factory/with_type_parameters_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + class Foo<T> { Foo._();
diff --git a/tests/language/field/field3_test.dart b/tests/language/field/field3_test.dart index 901dd06..b6b7098 100644 --- a/tests/language/field/field3_test.dart +++ b/tests/language/field/field3_test.dart
@@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Dart test to catch error reporting bugs in class fields declarations. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class C {
diff --git a/tests/language/field/field6_test.dart b/tests/language/field/field6_test.dart index fcf0f40..63e3e64 100644 --- a/tests/language/field/field6_test.dart +++ b/tests/language/field/field6_test.dart
@@ -4,6 +4,9 @@ // Dart test to catch error reporting bugs in class fields declarations. // Should be an error because we have a getter overriding a function name. +// Formatting can break multitests, so don't format them. +// dart format off + class A { int a() { // //# 00: ok return 1;// //# 00: ok
diff --git a/tests/language/field/initialization_order_test.dart b/tests/language/field/initialization_order_test.dart index 832b712..1144a38 100644 --- a/tests/language/field/initialization_order_test.dart +++ b/tests/language/field/initialization_order_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; // Test that field initializers are evaluated in the right order.
diff --git a/tests/language/field/override3_test.dart b/tests/language/field/override3_test.dart index 9b100be..4e948bb 100644 --- a/tests/language/field/override3_test.dart +++ b/tests/language/field/override3_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that we report a compile-time error when a static field conflicts with // an inherited instance member of the same name.
diff --git a/tests/language/field/override4_test.dart b/tests/language/field/override4_test.dart index 0ccee61..1558eec 100644 --- a/tests/language/field/override4_test.dart +++ b/tests/language/field/override4_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that we report a compile-time error when an instance field conflicts // with an inherited instance method of the same name.
diff --git a/tests/language/field/override_test.dart b/tests/language/field/override_test.dart index 187773b..e362112 100644 --- a/tests/language/field/override_test.dart +++ b/tests/language/field/override_test.dart
@@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Test overriding of fields. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class A {}
diff --git a/tests/language/field/type_check2_test.dart b/tests/language/field/type_check2_test.dart index 3cd1f00..54061d9 100644 --- a/tests/language/field/type_check2_test.dart +++ b/tests/language/field/type_check2_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + class A { A? a;
diff --git a/tests/language/final/syntax_test.dart b/tests/language/final/syntax_test.dart index 4903587..86d3544 100644 --- a/tests/language/final/syntax_test.dart +++ b/tests/language/final/syntax_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; main() {
diff --git a/tests/language/function/syntax_test.dart b/tests/language/function/syntax_test.dart index 3baf2df..77a0ce5 100644 --- a/tests/language/function/syntax_test.dart +++ b/tests/language/function/syntax_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; // Tests function statement and expression syntax.
diff --git a/tests/language/function/type_alias5_test.dart b/tests/language/function/type_alias5_test.dart index 40d6309..6d934ac 100644 --- a/tests/language/function/type_alias5_test.dart +++ b/tests/language/function/type_alias5_test.dart
@@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for illegally self referencing function type alias. +// Formatting can break multitests, so don't format them. +// dart format off + typedef Handle Handle(String command); //# 00: compile-time error typedef F(F x); //# 01: compile-time error
diff --git a/tests/language/function/type_alias7_test.dart b/tests/language/function/type_alias7_test.dart index ca8fef9..f30b39d 100644 --- a/tests/language/function/type_alias7_test.dart +++ b/tests/language/function/type_alias7_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + typedef void funcType([int arg]); typedef void badFuncType([int arg = 0]); //# 00: compile-time error
diff --git a/tests/language/function/type_parameter_bound_object_test.dart b/tests/language/function/type_parameter_bound_object_test.dart index 61486c2f..48988af 100644 --- a/tests/language/function/type_parameter_bound_object_test.dart +++ b/tests/language/function/type_parameter_bound_object_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + Q hest<Q>(dynamic x) { if (x is Q) return x; throw "unreached";
diff --git a/tests/language/generic/closure_test.dart b/tests/language/generic/closure_test.dart index 3946c10..a7a89c8 100644 --- a/tests/language/generic/closure_test.dart +++ b/tests/language/generic/closure_test.dart
@@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// Formatting can break multitests, so don't format them. +// dart format off + // Check that generic closures are properly instantiated. import 'package:expect/expect.dart';
diff --git a/tests/language/generic/function_bounds_test.dart b/tests/language/generic/function_bounds_test.dart index 4ab11d3..5f173fc 100644 --- a/tests/language/generic/function_bounds_test.dart +++ b/tests/language/generic/function_bounds_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import 'dart:math'; import 'package:expect/expect.dart';
diff --git a/tests/language/generic/function_dcall_test.dart b/tests/language/generic/function_dcall_test.dart index 28fa0dc..8a6aa25 100644 --- a/tests/language/generic/function_dcall_test.dart +++ b/tests/language/generic/function_dcall_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import 'package:expect/expect.dart'; void testCallsToGenericFn() {
diff --git a/tests/language/generic/function_typedef_test.dart b/tests/language/generic/function_typedef_test.dart index a61b0b6..bf9d672 100644 --- a/tests/language/generic/function_typedef_test.dart +++ b/tests/language/generic/function_typedef_test.dart
@@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for a function type test that cannot be eliminated at compile time. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class A {}
diff --git a/tests/language/generic/generic_test.dart b/tests/language/generic/generic_test.dart index 16742d5..a7bb660 100644 --- a/tests/language/generic/generic_test.dart +++ b/tests/language/generic/generic_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + /// Dart test program testing generic type allocations and generic type tests. import "package:expect/expect.dart";
diff --git a/tests/language/generic/instantiate_to_bounds_super_bounded_test.dart b/tests/language/generic/instantiate_to_bounds_super_bounded_test.dart index db07f2b..71a1864 100644 --- a/tests/language/generic/instantiate_to_bounds_super_bounded_test.dart +++ b/tests/language/generic/instantiate_to_bounds_super_bounded_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Verify that when a super-bounded type is produced by instantiate-to-bounds, // it's properly allowed or rejected depending on the context in which it's // used.
diff --git a/tests/language/generic/method_types_test.dart b/tests/language/generic/method_types_test.dart index 05c6bf1..66a90df 100644 --- a/tests/language/generic/method_types_test.dart +++ b/tests/language/generic/method_types_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import 'package:expect/expect.dart'; typedef Convert1<O> = O Function<I>(I input);
diff --git a/tests/language/generic/type_parameter_test.dart b/tests/language/generic/type_parameter_test.dart index 9009863..fe5e7d5 100644 --- a/tests/language/generic/type_parameter_test.dart +++ b/tests/language/generic/type_parameter_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class A<T> {
diff --git a/tests/language/generic_methods/bounds_test.dart b/tests/language/generic_methods/bounds_test.dart index 365d0ef..947079e 100644 --- a/tests/language/generic_methods/bounds_test.dart +++ b/tests/language/generic_methods/bounds_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that a dynamic call to a generic function checks the type argument // against its bound.
diff --git a/tests/language/generic_methods/dynamic_test.dart b/tests/language/generic_methods/dynamic_test.dart index 6b92dc3..2564e24 100644 --- a/tests/language/generic_methods/dynamic_test.dart +++ b/tests/language/generic_methods/dynamic_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that if the type of a parameter of a generic method is a type parameter, // the type of the passed argument is checked (01) at compile time // if the receiver is given via an interface-type variable, and (02) at runtime
diff --git a/tests/language/generic_methods/overriding_test.dart b/tests/language/generic_methods/overriding_test.dart index 2ef1def..ac6fd6b 100644 --- a/tests/language/generic_methods/overriding_test.dart +++ b/tests/language/generic_methods/overriding_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that generic methods can be overloaded (a) with widened type bounds, and // (b) using the bound as the type of the parameter in the overloaded method.
diff --git a/tests/language/generic_methods/recursive_bound_test.dart b/tests/language/generic_methods/recursive_bound_test.dart index f79ce20..824df19 100644 --- a/tests/language/generic_methods/recursive_bound_test.dart +++ b/tests/language/generic_methods/recursive_bound_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that F-bounded quantification works for generic methods, and that types // that are passed to generic methods in dynamic calls are checked for being // recursively defined.
diff --git a/tests/language/generic_methods/simple_as_expression_test.dart b/tests/language/generic_methods/simple_as_expression_test.dart index d6b3c48..53007fe 100644 --- a/tests/language/generic_methods/simple_as_expression_test.dart +++ b/tests/language/generic_methods/simple_as_expression_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that type parameters in generic methods can be used in as-expressions. library generic_methods_simple_as_expression_test;
diff --git a/tests/language/getter/override2_test.dart b/tests/language/getter/override2_test.dart index 95519a2..47d2b21 100644 --- a/tests/language/getter/override2_test.dart +++ b/tests/language/getter/override2_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that we report a compile-time error when an instance getter conflicts // with an inherited instance method of the same name.
diff --git a/tests/language/getter/override_test.dart b/tests/language/getter/override_test.dart index 8e17d33..e207650 100644 --- a/tests/language/getter/override_test.dart +++ b/tests/language/getter/override_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that we report a compile-time error when a static getter conflicts with // an inherited instance member of the same name.
diff --git a/tests/language/identifier/built_in_identifier_test.dart b/tests/language/identifier/built_in_identifier_test.dart index bab2510..23d3d36 100644 --- a/tests/language/identifier/built_in_identifier_test.dart +++ b/tests/language/identifier/built_in_identifier_test.dart
@@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Check that we can use pseudo keywords as names in function level code. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class PseudoKWTest {
diff --git a/tests/language/identifier/built_in_not_prefix_test.dart b/tests/language/identifier/built_in_not_prefix_test.dart index 0225875..74b521e 100644 --- a/tests/language/identifier/built_in_not_prefix_test.dart +++ b/tests/language/identifier/built_in_not_prefix_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // From The Dart Programming Language Specification, section 16.33 // "Identifier Reference": //
diff --git a/tests/language/identifier/built_in_type_annotation_test.dart b/tests/language/identifier/built_in_type_annotation_test.dart index 7410ff7..6a934d1 100644 --- a/tests/language/identifier/built_in_type_annotation_test.dart +++ b/tests/language/identifier/built_in_type_annotation_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // From The Dart Programming Language Specification, section 16.33 // "Identifier Reference": //
diff --git a/tests/language/identifier/known_usage_test.dart b/tests/language/identifier/known_usage_test.dart index 360869b..ea921f9 100644 --- a/tests/language/identifier/known_usage_test.dart +++ b/tests/language/identifier/known_usage_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // The identifiers listed below are mentioned in the grammar, but none of // them is a reserved word or a built-in identifier. Such an identifier can // be used just like all other identifiers, with a few exceptions. Here are
diff --git a/tests/language/identity/const_test.dart b/tests/language/identity/const_test.dart index 9c62b06..eac8ba3 100644 --- a/tests/language/identity/const_test.dart +++ b/tests/language/identity/const_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import 'package:expect/expect.dart'; f() {}
diff --git a/tests/language/if_null/assignment_static_test.dart b/tests/language/if_null/assignment_static_test.dart index 7eee56b..c2a3570 100644 --- a/tests/language/if_null/assignment_static_test.dart +++ b/tests/language/if_null/assignment_static_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Verify that the static type of a ??= b is the least upper bound of the // static types of a and b.
diff --git a/tests/language/implicit_creation/implicit_const_context_not_test.dart b/tests/language/implicit_creation/implicit_const_context_not_test.dart index 83d75ea..65987bc 100644 --- a/tests/language/implicit_creation/implicit_const_context_not_test.dart +++ b/tests/language/implicit_creation/implicit_const_context_not_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; // Check places that are *not* supposed to be constant contexts,
diff --git a/tests/language/implicit_creation/implicit_const_not_default_values_test.dart b/tests/language/implicit_creation/implicit_const_not_default_values_test.dart index 3968dea..7234be9 100644 --- a/tests/language/implicit_creation/implicit_const_not_default_values_test.dart +++ b/tests/language/implicit_creation/implicit_const_not_default_values_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Tests that const/new-insertion does the right thing for default values. // A default-value expression does not introduce a const context.
diff --git a/tests/language/interface/cycle_test.dart b/tests/language/interface/cycle_test.dart index 316790e..44d125e3 100644 --- a/tests/language/interface/cycle_test.dart +++ b/tests/language/interface/cycle_test.dart
@@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Check fail because of cycles in super interface relationship. +// Formatting can break multitests, so don't format them. +// dart format off + class C implements B {} class A implements B {}
diff --git a/tests/language/interface/duplicate_implements_test.dart b/tests/language/interface/duplicate_implements_test.dart index 41c10fa..68103e8 100644 --- a/tests/language/interface/duplicate_implements_test.dart +++ b/tests/language/interface/duplicate_implements_test.dart
@@ -4,6 +4,9 @@ // Check that duplicate types in implements/extends list are // compile-time errors. +// Formatting can break multitests, so don't format them. +// dart format off + abstract class I {} abstract class J {}
diff --git a/tests/language/is/is4_test.dart b/tests/language/is/is4_test.dart index b560557..3918a44 100644 --- a/tests/language/is/is4_test.dart +++ b/tests/language/is/is4_test.dart
@@ -5,6 +5,9 @@ // Regression test for issue 5216. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class Foo<T> {
diff --git a/tests/language/library/ambiguous_test.dart b/tests/language/library/ambiguous_test.dart index 1c2cd6b..be665c2 100644 --- a/tests/language/library/ambiguous_test.dart +++ b/tests/language/library/ambiguous_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // This test should fail to load because we are importing two libraries // which define the same top level name foo, and we are referring to the name.
diff --git a/tests/language/library/library_test.dart b/tests/language/library/library_test.dart index 6dd7428..e056434 100644 --- a/tests/language/library/library_test.dart +++ b/tests/language/library/library_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import "nonexistent_library.dart"; //# 01: compile-time error main() {
diff --git a/tests/language/list/literal4_test.dart b/tests/language/list/literal4_test.dart index 72a31d1..5d05af9 100644 --- a/tests/language/list/literal4_test.dart +++ b/tests/language/list/literal4_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class ListLiteral4Test<T> {
diff --git a/tests/language/list/literal_syntax_test.dart b/tests/language/list/literal_syntax_test.dart index 652d1b1..05d87b9 100644 --- a/tests/language/list/literal_syntax_test.dart +++ b/tests/language/list/literal_syntax_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; abstract class I {}
diff --git a/tests/language/main/main_test.dart b/tests/language/main/main_test.dart index 6b5c24c..72a4015 100644 --- a/tests/language/main/main_test.dart +++ b/tests/language/main/main_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + main( a // //# 01: ok
diff --git a/tests/language/main/no_main_test.dart b/tests/language/main/no_main_test.dart index 0700b65..b3971fe 100644 --- a/tests/language/main/no_main_test.dart +++ b/tests/language/main/no_main_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + /* //# 01: static type warning, runtime error main() {} */ //# 01: continued
diff --git a/tests/language/malbounded/redirecting_factory_test.dart b/tests/language/malbounded/redirecting_factory_test.dart index 9d2d8a9..8636666 100644 --- a/tests/language/malbounded/redirecting_factory_test.dart +++ b/tests/language/malbounded/redirecting_factory_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + class A< Ta extends num // //# 02: continued
diff --git a/tests/language/malformed/bound_test.dart b/tests/language/malformed/bound_test.dart index 035cedf..ac84244 100644 --- a/tests/language/malformed/bound_test.dart +++ b/tests/language/malformed/bound_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + class C<T extends Malformed //# 00: compile-time error > {
diff --git a/tests/language/malformed/malformed2_test.dart b/tests/language/malformed/malformed2_test.dart index 79061c2..bd94208 100644 --- a/tests/language/malformed/malformed2_test.dart +++ b/tests/language/malformed/malformed2_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + library malformed_test; // This part includes the actual tests.
diff --git a/tests/language/map/literal11_test.dart b/tests/language/map/literal11_test.dart index 93643eb..daaab71 100644 --- a/tests/language/map/literal11_test.dart +++ b/tests/language/map/literal11_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test the use type arguments on constant maps. library map_literal11_test;
diff --git a/tests/language/map/literal3_test.dart b/tests/language/map/literal3_test.dart index 517ef90..cf7df6d 100644 --- a/tests/language/map/literal3_test.dart +++ b/tests/language/map/literal3_test.dart
@@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Test program for map literals. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class MapLiteralTest {
diff --git a/tests/language/map/literal4_test.dart b/tests/language/map/literal4_test.dart index 9358e59..cd186a4 100644 --- a/tests/language/map/literal4_test.dart +++ b/tests/language/map/literal4_test.dart
@@ -5,6 +5,9 @@ // // Dart test program testing type checks in map literals. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class MapLiteral4Test<T> {
diff --git a/tests/language/metadata/cyclic_test.dart b/tests/language/metadata/cyclic_test.dart index 6ff4798..8270fd1 100644 --- a/tests/language/metadata/cyclic_test.dart +++ b/tests/language/metadata/cyclic_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Check that metadata on a class 'Super' using subtypes of 'Super' are not // considered as cyclic inheritance or lead to crashes.
diff --git a/tests/language/metadata/scope1_test.dart b/tests/language/metadata/scope1_test.dart index 6af9844..6207a7b 100644 --- a/tests/language/metadata/scope1_test.dart +++ b/tests/language/metadata/scope1_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that a type variable is not in scope for metadata declared on the type // declaration.
diff --git a/tests/language/metadata/scope2_test.dart b/tests/language/metadata/scope2_test.dart index 7a66a38..a871729 100644 --- a/tests/language/metadata/scope2_test.dart +++ b/tests/language/metadata/scope2_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that a type variable is not in scope for metadata declared on the type // declaration.
diff --git a/tests/language/method/override2_test.dart b/tests/language/method/override2_test.dart index 9db40ee..c79dc65 100644 --- a/tests/language/method/override2_test.dart +++ b/tests/language/method/override2_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Checks that an overriding method has compatible parameters. abstract class I {
diff --git a/tests/language/method/override7_test.dart b/tests/language/method/override7_test.dart index 51588d5..cc28ed4 100644 --- a/tests/language/method/override7_test.dart +++ b/tests/language/method/override7_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that we report a compile-time error when a static function conflicts // with an inherited instance member of the same name.
diff --git a/tests/language/method/override8_test.dart b/tests/language/method/override8_test.dart index 677952d..d254ffc 100644 --- a/tests/language/method/override8_test.dart +++ b/tests/language/method/override8_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that we report a compile-time error when an instance method conflicts // with an inherited instance field or getter of the same name.
diff --git a/tests/language/mixin/deny_listed_test.dart b/tests/language/mixin/deny_listed_test.dart index 5a4e570..0f5107a 100644 --- a/tests/language/mixin/deny_listed_test.dart +++ b/tests/language/mixin/deny_listed_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Check mixin of deny-listed types. import 'package:expect/expect.dart';
diff --git a/tests/language/mixin/forwarding_constructor4_test.dart b/tests/language/mixin/forwarding_constructor4_test.dart index a521675..f8cbc82 100644 --- a/tests/language/mixin/forwarding_constructor4_test.dart +++ b/tests/language/mixin/forwarding_constructor4_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Verify that a forwarding constructor is generated even when there is an // optional parameter.
diff --git a/tests/language/mixin/illegal_syntax_test.dart b/tests/language/mixin/illegal_syntax_test.dart index 2237320..c2cba8b 100644 --- a/tests/language/mixin/illegal_syntax_test.dart +++ b/tests/language/mixin/illegal_syntax_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + class S { } class G<T> { } mixin M { }
diff --git a/tests/language/mixin/invalid_bound2_test.dart b/tests/language/mixin/invalid_bound2_test.dart index 77e8713..93f87f3 100644 --- a/tests/language/mixin/invalid_bound2_test.dart +++ b/tests/language/mixin/invalid_bound2_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + class S0<T> {} class S<U extends num, V extends U> extends S0<String> {}
diff --git a/tests/language/mixin/invalid_bound_test.dart b/tests/language/mixin/invalid_bound_test.dart index f42c075..38b646d 100644 --- a/tests/language/mixin/invalid_bound_test.dart +++ b/tests/language/mixin/invalid_bound_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + class S0<T> {} class S<T extends num> extends S0<String> {}
diff --git a/tests/language/mixin/invalid_inheritance1_test.dart b/tests/language/mixin/invalid_inheritance1_test.dart index 23c689a..725d486 100644 --- a/tests/language/mixin/invalid_inheritance1_test.dart +++ b/tests/language/mixin/invalid_inheritance1_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + class C<T> extends Object with Malformed // //# 01: compile-time error with T // //# 02: compile-time error
diff --git a/tests/language/mixin/invalid_inheritance2_test.dart b/tests/language/mixin/invalid_inheritance2_test.dart index fd2ce5b..0fe98f4 100644 --- a/tests/language/mixin/invalid_inheritance2_test.dart +++ b/tests/language/mixin/invalid_inheritance2_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + class C<T> = Object with Malformed; // //# 01: compile-time error class C<T> = Object with T; // //# 02: compile-time error class C<T> = OBject with T<int>; // //# 03: compile-time error
diff --git a/tests/language/mixin/type_parameter_inference_error_test.dart b/tests/language/mixin/type_parameter_inference_error_test.dart index c720e49..c177c36 100644 --- a/tests/language/mixin/type_parameter_inference_error_test.dart +++ b/tests/language/mixin/type_parameter_inference_error_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + abstract class A<T> {} class B {}
diff --git a/tests/language/mixin_declaration/mixin_declaration_invalid_application_supertype_test.dart b/tests/language/mixin_declaration/mixin_declaration_invalid_application_supertype_test.dart index 08e33a6..1a2c7d3 100644 --- a/tests/language/mixin_declaration/mixin_declaration_invalid_application_supertype_test.dart +++ b/tests/language/mixin_declaration/mixin_declaration_invalid_application_supertype_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; // Test various invalid mixin applications where the supertype doesn't
diff --git a/tests/language/mixin_declaration/mixin_declaration_invalid_superinvocation_test.dart b/tests/language/mixin_declaration/mixin_declaration_invalid_superinvocation_test.dart index 8e5e9ae..a40be85 100644 --- a/tests/language/mixin_declaration/mixin_declaration_invalid_superinvocation_test.dart +++ b/tests/language/mixin_declaration/mixin_declaration_invalid_superinvocation_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test various invalid super-invocations for mixin declarations. abstract class UnaryInt {
diff --git a/tests/language/mixin_declaration/mixin_declaration_invalid_syntax_test.dart b/tests/language/mixin_declaration/mixin_declaration_invalid_syntax_test.dart index 0ff26d6..789a753 100644 --- a/tests/language/mixin_declaration/mixin_declaration_invalid_syntax_test.dart +++ b/tests/language/mixin_declaration/mixin_declaration_invalid_syntax_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; // Test various invalid syntax combinations.
diff --git a/tests/language/mixin_declaration/mixin_declaration_invalid_type_test.dart b/tests/language/mixin_declaration/mixin_declaration_invalid_type_test.dart index 0fad558..f0ce5fc 100644 --- a/tests/language/mixin_declaration/mixin_declaration_invalid_type_test.dart +++ b/tests/language/mixin_declaration/mixin_declaration_invalid_type_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; // Test various invalid type-declaration combinations.
diff --git a/tests/language/mixin_declaration/mixin_declaration_invalid_usage_test.dart b/tests/language/mixin_declaration/mixin_declaration_invalid_usage_test.dart index 83e50b4d..5b44223 100644 --- a/tests/language/mixin_declaration/mixin_declaration_invalid_usage_test.dart +++ b/tests/language/mixin_declaration/mixin_declaration_invalid_usage_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + mixin Mixin // cannot `extend` anything. extends M //# 01: compile-time error extends Object //# 02: compile-time error
diff --git a/tests/language/mixin_declaration/mixin_declaration_superinvocation_application_test.dart b/tests/language/mixin_declaration/mixin_declaration_superinvocation_application_test.dart index eee21d8..880b5a0 100644 --- a/tests/language/mixin_declaration/mixin_declaration_superinvocation_application_test.dart +++ b/tests/language/mixin_declaration/mixin_declaration_superinvocation_application_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test various invalid mixin applications due to insufficient super-invoked // methods.
diff --git a/tests/language/mixin_declaration/mixin_declaration_supertype_compatible_test.dart b/tests/language/mixin_declaration/mixin_declaration_supertype_compatible_test.dart index 5307979..29ad023 100644 --- a/tests/language/mixin_declaration/mixin_declaration_supertype_compatible_test.dart +++ b/tests/language/mixin_declaration/mixin_declaration_supertype_compatible_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; // Test various invalid super-constraints for mixin declarations.
diff --git a/tests/language/mixin_legacy/invalid_inheritance2_test.dart b/tests/language/mixin_legacy/invalid_inheritance2_test.dart index ed27a45..c73092e 100644 --- a/tests/language/mixin_legacy/invalid_inheritance2_test.dart +++ b/tests/language/mixin_legacy/invalid_inheritance2_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + class C<T> = Object with Malformed; // //# 01: compile-time error class C<T> = Object with T; // //# 02: compile-time error class C<T> = OBject with T<int>; // //# 03: compile-time error
diff --git a/tests/language/nnbd/resolution/question_dot_produces_nullable_type_test.dart b/tests/language/nnbd/resolution/question_dot_produces_nullable_type_test.dart index 1df74a7..590fe08 100644 --- a/tests/language/nnbd/resolution/question_dot_produces_nullable_type_test.dart +++ b/tests/language/nnbd/resolution/question_dot_produces_nullable_type_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off bool c = false;
diff --git a/tests/language/nnbd/static_errors/await_in_late_local_variable_initializer_test.dart b/tests/language/nnbd/static_errors/await_in_late_local_variable_initializer_test.dart index 910106a..f2f9dc1 100644 --- a/tests/language/nnbd/static_errors/await_in_late_local_variable_initializer_test.dart +++ b/tests/language/nnbd/static_errors/await_in_late_local_variable_initializer_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off // Test that it is a compile time error for a `late` variable initializer // to use the `await` expression.
diff --git a/tests/language/nnbd/static_errors/default_value_on_required_parameter_test.dart b/tests/language/nnbd/static_errors/default_value_on_required_parameter_test.dart index 29ab688..55d004d 100644 --- a/tests/language/nnbd/static_errors/default_value_on_required_parameter_test.dart +++ b/tests/language/nnbd/static_errors/default_value_on_required_parameter_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off // Test that it is an error if a required named parameter has a default value. main() {}
diff --git a/tests/language/nnbd/static_errors/implicit_downcasts.dart b/tests/language/nnbd/static_errors/implicit_downcasts.dart index b19ce47..7fc4b3d 100644 --- a/tests/language/nnbd/static_errors/implicit_downcasts.dart +++ b/tests/language/nnbd/static_errors/implicit_downcasts.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off // Test that it is an error to do what was once allowed as an "implicit // downcast."
diff --git a/tests/language/nnbd/static_errors/late_final_field_with_const_constructor_test.dart b/tests/language/nnbd/static_errors/late_final_field_with_const_constructor_test.dart index d7b3898..b2d4d6e 100644 --- a/tests/language/nnbd/static_errors/late_final_field_with_const_constructor_test.dart +++ b/tests/language/nnbd/static_errors/late_final_field_with_const_constructor_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off // Test that it is not a compile time error for a `final` variable to not have // an initializer if that variable is declared as `late`.
diff --git a/tests/language/nnbd/static_errors/missing_default_value_for_parameter_test.dart b/tests/language/nnbd/static_errors/missing_default_value_for_parameter_test.dart index 08b7053..8f5c624 100644 --- a/tests/language/nnbd/static_errors/missing_default_value_for_parameter_test.dart +++ b/tests/language/nnbd/static_errors/missing_default_value_for_parameter_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off // Test that it is an error if an optional parameter (named or otherwise) with // no default value has a potentially non-nullable type.
diff --git a/tests/language/nnbd/static_errors/missing_required_argument_test.dart b/tests/language/nnbd/static_errors/missing_required_argument_test.dart index f1201b5..ae79f64 100644 --- a/tests/language/nnbd/static_errors/missing_required_argument_test.dart +++ b/tests/language/nnbd/static_errors/missing_required_argument_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off // Test that it is an error if a named parameter that is part of a required // group is not bound to an argument at a call site.
diff --git a/tests/language/nnbd/static_errors/non_null_assertion_test.dart b/tests/language/nnbd/static_errors/non_null_assertion_test.dart index d12230c..a0bc38a 100644 --- a/tests/language/nnbd/static_errors/non_null_assertion_test.dart +++ b/tests/language/nnbd/static_errors/non_null_assertion_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + void main() { void x; int i;
diff --git a/tests/language/nnbd/static_errors/not_assigned_local_if_then_else_else_test.dart b/tests/language/nnbd/static_errors/not_assigned_local_if_then_else_else_test.dart index 74c16a1..b83d2e9 100644 --- a/tests/language/nnbd/static_errors/not_assigned_local_if_then_else_else_test.dart +++ b/tests/language/nnbd/static_errors/not_assigned_local_if_then_else_else_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off // It is an error if a potentially non-nullable local variable which has no // initializer expression and is not marked `late` is used before it is
diff --git a/tests/language/nnbd/static_errors/not_assigned_local_if_then_else_then_test.dart b/tests/language/nnbd/static_errors/not_assigned_local_if_then_else_then_test.dart index 8a959fb..2a79864 100644 --- a/tests/language/nnbd/static_errors/not_assigned_local_if_then_else_then_test.dart +++ b/tests/language/nnbd/static_errors/not_assigned_local_if_then_else_then_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off // It is an error if a potentially non-nullable local variable which has no // initializer expression and is not marked `late` is used before it is
diff --git a/tests/language/nnbd/static_errors/not_assigned_local_if_then_test.dart b/tests/language/nnbd/static_errors/not_assigned_local_if_then_test.dart index 986b661..00186bd 100644 --- a/tests/language/nnbd/static_errors/not_assigned_local_if_then_test.dart +++ b/tests/language/nnbd/static_errors/not_assigned_local_if_then_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off // It is an error if a potentially non-nullable local variable which has no // initializer expression and is not marked `late` is used before it is
diff --git a/tests/language/nnbd/static_errors/not_assigned_local_initializer_test.dart b/tests/language/nnbd/static_errors/not_assigned_local_initializer_test.dart index 1edcb9c..cc6baf3 100644 --- a/tests/language/nnbd/static_errors/not_assigned_local_initializer_test.dart +++ b/tests/language/nnbd/static_errors/not_assigned_local_initializer_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off // It is an error if a potentially non-nullable local variable which has no // initializer expression and is not marked `late` is used before it is
diff --git a/tests/language/nnbd/static_errors/not_assigned_local_try_catch_body_test.dart b/tests/language/nnbd/static_errors/not_assigned_local_try_catch_body_test.dart index e5ddbcf..153a01d 100644 --- a/tests/language/nnbd/static_errors/not_assigned_local_try_catch_body_test.dart +++ b/tests/language/nnbd/static_errors/not_assigned_local_try_catch_body_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off // It is an error if a potentially non-nullable local variable which has no // initializer expression and is not marked `late` is used before it is
diff --git a/tests/language/nnbd/static_errors/not_assigned_local_while_true_break_before_test.dart b/tests/language/nnbd/static_errors/not_assigned_local_while_true_break_before_test.dart index 1e0bbe8..04121e0 100644 --- a/tests/language/nnbd/static_errors/not_assigned_local_while_true_break_before_test.dart +++ b/tests/language/nnbd/static_errors/not_assigned_local_while_true_break_before_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off // It is an error if a potentially non-nullable local variable which has no // initializer expression and is not marked `late` is used before it is
diff --git a/tests/language/nnbd/static_errors/not_initialized_non_nullable_instance_field_test.dart b/tests/language/nnbd/static_errors/not_initialized_non_nullable_instance_field_test.dart index 6ce0735..478910e 100644 --- a/tests/language/nnbd/static_errors/not_initialized_non_nullable_instance_field_test.dart +++ b/tests/language/nnbd/static_errors/not_initialized_non_nullable_instance_field_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off // Test that it is an error if an instance field with potentially non-nullable // type has no initializer expression and is not initialized in a constructor
diff --git a/tests/language/nnbd/static_errors/not_initialized_non_nullable_static_field_test.dart b/tests/language/nnbd/static_errors/not_initialized_non_nullable_static_field_test.dart index 4a5d076..f399f9c 100644 --- a/tests/language/nnbd/static_errors/not_initialized_non_nullable_static_field_test.dart +++ b/tests/language/nnbd/static_errors/not_initialized_non_nullable_static_field_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off // Test that it is an error if a static field non-nullable type has no // initializer expression.
diff --git a/tests/language/nnbd/static_errors/not_initialized_non_nullable_top_test.dart b/tests/language/nnbd/static_errors/not_initialized_non_nullable_top_test.dart index 57c92c0..8d7b987 100644 --- a/tests/language/nnbd/static_errors/not_initialized_non_nullable_top_test.dart +++ b/tests/language/nnbd/static_errors/not_initialized_non_nullable_top_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off // Test that it is an error if a top level variable with non-nullable type has // no initializer expression.
diff --git a/tests/language/nnbd/static_errors/nullable_function_types_test.dart b/tests/language/nnbd/static_errors/nullable_function_types_test.dart index 12f2fc9..c8be9bb 100644 --- a/tests/language/nnbd/static_errors/nullable_function_types_test.dart +++ b/tests/language/nnbd/static_errors/nullable_function_types_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off class C { call() {}
diff --git a/tests/language/nnbd/static_errors/nullable_supertype_test.dart b/tests/language/nnbd/static_errors/nullable_supertype_test.dart index a632383..a2c4f75 100644 --- a/tests/language/nnbd/static_errors/nullable_supertype_test.dart +++ b/tests/language/nnbd/static_errors/nullable_supertype_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off // Test that it is an error to use a nullable type as a supertype. import 'package:expect/expect.dart';
diff --git a/tests/language/nnbd/static_errors/subtype_of_never_test.dart b/tests/language/nnbd/static_errors/subtype_of_never_test.dart index 6361562..0aac201 100644 --- a/tests/language/nnbd/static_errors/subtype_of_never_test.dart +++ b/tests/language/nnbd/static_errors/subtype_of_never_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off // Test that it is an error for a class to extend, implement, or mixin the type // Never.
diff --git a/tests/language/nnbd/static_errors/this_reference_in_late_field_test.dart b/tests/language/nnbd/static_errors/this_reference_in_late_field_test.dart index 3c3efd1..6f379c0 100644 --- a/tests/language/nnbd/static_errors/this_reference_in_late_field_test.dart +++ b/tests/language/nnbd/static_errors/this_reference_in_late_field_test.dart
@@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. import "package:expect/expect.dart"; +// Formatting can break multitests, so don't format them. +// dart format off + void main() { final c = C(); Expect.identical(c, c);
diff --git a/tests/language/nnbd/static_errors/throw_of_invalid_type_test.dart b/tests/language/nnbd/static_errors/throw_of_invalid_type_test.dart index 9a20a36..804ef6f 100644 --- a/tests/language/nnbd/static_errors/throw_of_invalid_type_test.dart +++ b/tests/language/nnbd/static_errors/throw_of_invalid_type_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off // Test that it is an error if the static type of `e` in the expression // `throw e` is not assignable to `Object`.
diff --git a/tests/language/nnbd/static_errors/unchecked_use_of_nullable_cascaded_test.dart b/tests/language/nnbd/static_errors/unchecked_use_of_nullable_cascaded_test.dart index 5773c43..24fdb86 100644 --- a/tests/language/nnbd/static_errors/unchecked_use_of_nullable_cascaded_test.dart +++ b/tests/language/nnbd/static_errors/unchecked_use_of_nullable_cascaded_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off // Test that it is an error to use nullable types in unsound ways. void main() {
diff --git a/tests/language/nnbd/static_errors/unchecked_use_of_nullable_test.dart b/tests/language/nnbd/static_errors/unchecked_use_of_nullable_test.dart index 6c8c4a2..11552b1 100644 --- a/tests/language/nnbd/static_errors/unchecked_use_of_nullable_test.dart +++ b/tests/language/nnbd/static_errors/unchecked_use_of_nullable_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import 'package:expect/async_helper.dart'; // Test that it is an error to use nullable types in unsound ways.
diff --git a/tests/language/nnbd/static_errors/use_nnbd_sdk_test.dart b/tests/language/nnbd/static_errors/use_nnbd_sdk_test.dart index 1f65c6a..03294a6 100644 --- a/tests/language/nnbd/static_errors/use_nnbd_sdk_test.dart +++ b/tests/language/nnbd/static_errors/use_nnbd_sdk_test.dart
@@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. import "package:expect/expect.dart"; +// Formatting can break multitests, so don't format them. +// dart format off + void main() { }
diff --git a/tests/language/nnbd/subtyping/regress41939_test.dart b/tests/language/nnbd/subtyping/regress41939_test.dart index fd40999..8d4b1e7 100644 --- a/tests/language/nnbd/subtyping/regress41939_test.dart +++ b/tests/language/nnbd/subtyping/regress41939_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Requirements=nnbd-strong // Regression test for https://github.com/dart-lang/sdk/issues/41939
diff --git a/tests/language/nnbd/syntax/late_modifier_error_test.dart b/tests/language/nnbd/syntax/late_modifier_error_test.dart index 05ce870..f4ee509 100644 --- a/tests/language/nnbd/syntax/late_modifier_error_test.dart +++ b/tests/language/nnbd/syntax/late_modifier_error_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off // Invalid uses of "late" modifier
diff --git a/tests/language/nnbd/syntax/nullable_type_error_test.dart b/tests/language/nnbd/syntax/nullable_type_error_test.dart index 01112ab..14c70b2 100644 --- a/tests/language/nnbd/syntax/nullable_type_error_test.dart +++ b/tests/language/nnbd/syntax/nullable_type_error_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import 'dart:core'; import 'dart:core' as core;
diff --git a/tests/language/nnbd/syntax/required_modifier_error_test.dart b/tests/language/nnbd/syntax/required_modifier_error_test.dart index 24ac35d..76491ff 100644 --- a/tests/language/nnbd/syntax/required_modifier_error_test.dart +++ b/tests/language/nnbd/syntax/required_modifier_error_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off // Invalid uses of "required" modifier
diff --git a/tests/language/nnbd/type_promotion/assignment_test.dart b/tests/language/nnbd/type_promotion/assignment_test.dart index 1c085e0..d3e2403 100644 --- a/tests/language/nnbd/type_promotion/assignment_test.dart +++ b/tests/language/nnbd/type_promotion/assignment_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off void f(Object x) { if (x is String) {
diff --git a/tests/language/nnbd/type_promotion/do_condition_is_not_type_test.dart b/tests/language/nnbd/type_promotion/do_condition_is_not_type_test.dart index f011765..6599597 100644 --- a/tests/language/nnbd/type_promotion/do_condition_is_not_type_test.dart +++ b/tests/language/nnbd/type_promotion/do_condition_is_not_type_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off void f(Object x) { do {
diff --git a/tests/language/nnbd/type_promotion/do_condition_is_type_test.dart b/tests/language/nnbd/type_promotion/do_condition_is_type_test.dart index db7988c..02a58b8 100644 --- a/tests/language/nnbd/type_promotion/do_condition_is_type_test.dart +++ b/tests/language/nnbd/type_promotion/do_condition_is_type_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off void f(Object x) { do {
diff --git a/tests/language/nnbd/type_promotion/function_expression_is_type_mutated_in_closure_test.dart b/tests/language/nnbd/type_promotion/function_expression_is_type_mutated_in_closure_test.dart index c527f6f..219975e 100644 --- a/tests/language/nnbd/type_promotion/function_expression_is_type_mutated_in_closure_test.dart +++ b/tests/language/nnbd/type_promotion/function_expression_is_type_mutated_in_closure_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off void f() { void g(Object x) {
diff --git a/tests/language/nnbd/type_promotion/function_expression_outer_is_type_assigned_outside_test.dart b/tests/language/nnbd/type_promotion/function_expression_outer_is_type_assigned_outside_test.dart index aeaa801..08ea88c 100644 --- a/tests/language/nnbd/type_promotion/function_expression_outer_is_type_assigned_outside_test.dart +++ b/tests/language/nnbd/type_promotion/function_expression_outer_is_type_assigned_outside_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off void f(Object x) { late void Function() g;
diff --git a/tests/language/nnbd/type_promotion/if_is_not_type_test.dart b/tests/language/nnbd/type_promotion/if_is_not_type_test.dart index 16b109a..1ab99da 100644 --- a/tests/language/nnbd/type_promotion/if_is_not_type_test.dart +++ b/tests/language/nnbd/type_promotion/if_is_not_type_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off void f(Object x) { if (x is! String) {
diff --git a/tests/language/nnbd/type_promotion/if_is_type_test.dart b/tests/language/nnbd/type_promotion/if_is_type_test.dart index 6285019..c1e87b8 100644 --- a/tests/language/nnbd/type_promotion/if_is_type_test.dart +++ b/tests/language/nnbd/type_promotion/if_is_type_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off void f(Object x) { if (x is String) {
diff --git a/tests/language/nnbd/type_promotion/try_catch_assigned_body_test.dart b/tests/language/nnbd/type_promotion/try_catch_assigned_body_test.dart index baf4866..92d4da6 100644 --- a/tests/language/nnbd/type_promotion/try_catch_assigned_body_test.dart +++ b/tests/language/nnbd/type_promotion/try_catch_assigned_body_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off void f(Object x) { if (x is! String) return;
diff --git a/tests/language/nnbd/type_promotion/try_catch_is_not_type_exit_body_test.dart b/tests/language/nnbd/type_promotion/try_catch_is_not_type_exit_body_test.dart index 7e9066a..2491c6c 100644 --- a/tests/language/nnbd/type_promotion/try_catch_is_not_type_exit_body_test.dart +++ b/tests/language/nnbd/type_promotion/try_catch_is_not_type_exit_body_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off void f(Object x) { try {
diff --git a/tests/language/nnbd/type_promotion/try_finally_outer_is_type_assigned_body_test.dart b/tests/language/nnbd/type_promotion/try_finally_outer_is_type_assigned_body_test.dart index 3ce4f78..2f7e75f 100644 --- a/tests/language/nnbd/type_promotion/try_finally_outer_is_type_assigned_body_test.dart +++ b/tests/language/nnbd/type_promotion/try_finally_outer_is_type_assigned_body_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off void f(Object x) { if (x is String) {
diff --git a/tests/language/nnbd/type_promotion/try_finally_outer_is_type_assigned_finally_test.dart b/tests/language/nnbd/type_promotion/try_finally_outer_is_type_assigned_finally_test.dart index 9722738..e55f837 100644 --- a/tests/language/nnbd/type_promotion/try_finally_outer_is_type_assigned_finally_test.dart +++ b/tests/language/nnbd/type_promotion/try_finally_outer_is_type_assigned_finally_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off void f(Object x) { if (x is String) {
diff --git a/tests/language/nnbd/type_promotion/while_condition_false_test.dart b/tests/language/nnbd/type_promotion/while_condition_false_test.dart index 1d76b9d..7993027 100644 --- a/tests/language/nnbd/type_promotion/while_condition_false_test.dart +++ b/tests/language/nnbd/type_promotion/while_condition_false_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off void f(Object x) { while (x is! String) {
diff --git a/tests/language/nnbd/type_promotion/while_condition_true_test.dart b/tests/language/nnbd/type_promotion/while_condition_true_test.dart index b29dfc3..4ebf2a7 100644 --- a/tests/language/nnbd/type_promotion/while_condition_true_test.dart +++ b/tests/language/nnbd/type_promotion/while_condition_true_test.dart
@@ -2,6 +2,8 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off void f(Object x) { while (x is String) {
diff --git a/tests/language/no_such_method/no_such_method_private_setter_lib.dart b/tests/language/no_such_method/no_such_method_private_setter_lib.dart index 4f3ecb33..763d314 100644 --- a/tests/language/no_such_method/no_such_method_private_setter_lib.dart +++ b/tests/language/no_such_method/no_such_method_private_setter_lib.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + class Bar { int _x = -1; }
diff --git a/tests/language/no_such_method/private_setter_test.dart b/tests/language/no_such_method/private_setter_test.dart index 0f110bb..c65ecd2 100644 --- a/tests/language/no_such_method/private_setter_test.dart +++ b/tests/language/no_such_method/private_setter_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import 'no_such_method_private_setter_lib.dart'; class Foo implements Bar {}
diff --git a/tests/language/nosuchmethod_forwarding/nosuchmethod_forwarding_test.dart b/tests/language/nosuchmethod_forwarding/nosuchmethod_forwarding_test.dart index d54a784..4f7868e 100644 --- a/tests/language/nosuchmethod_forwarding/nosuchmethod_forwarding_test.dart +++ b/tests/language/nosuchmethod_forwarding/nosuchmethod_forwarding_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Testing that `noSuchMethod` appears to use implicit forwarders (we don't // care how it's actually implemented, but it should look like that).
diff --git a/tests/language/operator/bit_operations_test.dart b/tests/language/operator/bit_operations_test.dart index 06ce14c..e2503d0 100644 --- a/tests/language/operator/bit_operations_test.dart +++ b/tests/language/operator/bit_operations_test.dart
@@ -4,6 +4,9 @@ // Dart test for testing bitwise operations. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; void main() {
diff --git a/tests/language/operator/literal_unary_plus_test.dart b/tests/language/operator/literal_unary_plus_test.dart index 8a2530d..c7d9af1 100644 --- a/tests/language/operator/literal_unary_plus_test.dart +++ b/tests/language/operator/literal_unary_plus_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // There is no unary plus operator in Dart. main() {
diff --git a/tests/language/operator/unsigned_right_shift_test.dart b/tests/language/operator/unsigned_right_shift_test.dart index d476f1a..f3646a3 100644 --- a/tests/language/operator/unsigned_right_shift_test.dart +++ b/tests/language/operator/unsigned_right_shift_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/async_helper.dart"; import "package:expect/expect.dart";
diff --git a/tests/language/override/field_test.dart b/tests/language/override/field_test.dart index 739eacd..34d87fe 100644 --- a/tests/language/override/field_test.dart +++ b/tests/language/override/field_test.dart
@@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Dart test checking that static/instance field shadowing do not conflict. +// Formatting can break multitests, so don't format them. +// dart format off + class A { int instanceFieldInA = 0; static int staticFieldInA = 0;
diff --git a/tests/language/override/inheritance_field_test.dart b/tests/language/override/inheritance_field_test.dart index 871f1f1..b7c3a65 100644 --- a/tests/language/override/inheritance_field_test.dart +++ b/tests/language/override/inheritance_field_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + class A { get getter1 => null; //# 01: ok num get getter2 => 0; //# 02: ok
diff --git a/tests/language/override/inheritance_generic_test.dart b/tests/language/override/inheritance_generic_test.dart index 6256bc8..d797183 100644 --- a/tests/language/override/inheritance_generic_test.dart +++ b/tests/language/override/inheritance_generic_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + class A<T> { void method1(T t) => null; //# 01: ok void method2(T t) => null; //# 02: compile-time error
diff --git a/tests/language/override/inheritance_method2_test.dart b/tests/language/override/inheritance_method2_test.dart index e22571f3e..1756ab6 100644 --- a/tests/language/override/inheritance_method2_test.dart +++ b/tests/language/override/inheritance_method2_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + main() { new C(); }
diff --git a/tests/language/override/inheritance_method_test.dart b/tests/language/override/inheritance_method_test.dart index a7870e9..2da631c 100644 --- a/tests/language/override/inheritance_method_test.dart +++ b/tests/language/override/inheritance_method_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test static warnings for method overrides. class A {
diff --git a/tests/language/override/inheritance_mixed_test.dart b/tests/language/override/inheritance_mixed_test.dart index d4218d6..82d1789 100644 --- a/tests/language/override/inheritance_mixed_test.dart +++ b/tests/language/override/inheritance_mixed_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + class A { var member1; //# 01: compile-time error member2() {} //# 02: compile-time error
diff --git a/tests/language/override/inheritance_no_such_method_test.dart b/tests/language/override/inheritance_no_such_method_test.dart index 535f5a4..a17ac32 100644 --- a/tests/language/override/inheritance_no_such_method_test.dart +++ b/tests/language/override/inheritance_no_such_method_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test use of noSuchMethod in relation to abstract methods in // concrete classes.
diff --git a/tests/language/override/inheritance_setter_test.dart b/tests/language/override/inheritance_setter_test.dart index 5aa2cca..518109f 100644 --- a/tests/language/override/inheritance_setter_test.dart +++ b/tests/language/override/inheritance_setter_test.dart
@@ -1,3 +1,10 @@ +// Copyright (c) 2024, 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. + +// Formatting can break multitests, so don't format them. +// dart format off + main() { new C(); }
diff --git a/tests/language/parameter/default_test.dart b/tests/language/parameter/default_test.dart index 10a40a0..ab4c3e2 100644 --- a/tests/language/parameter/default_test.dart +++ b/tests/language/parameter/default_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + class C { foo(a = 1 // //# 02: syntax error
diff --git a/tests/language/parameter/metadata_test.dart b/tests/language/parameter/metadata_test.dart index a2ab741..f78b342 100644 --- a/tests/language/parameter/metadata_test.dart +++ b/tests/language/parameter/metadata_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that metadata annotations can be handled on nested parameters. test(
diff --git a/tests/language/part/missing_part_of_tag_test.dart b/tests/language/part/missing_part_of_tag_test.dart index ea91f42..9c4f6c2 100644 --- a/tests/language/part/missing_part_of_tag_test.dart +++ b/tests/language/part/missing_part_of_tag_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test for missing part-of tag. library lib;
diff --git a/tests/language/part/part2_test.dart b/tests/language/part/part2_test.dart index 706bc1f..71ac8cb 100644 --- a/tests/language/part/part2_test.dart +++ b/tests/language/part/part2_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + library org.dartlang.test.part2_test; part "part.dart"; //# 01: compile-time error
diff --git a/tests/language/prefix/identifier_reference_test.dart b/tests/language/prefix/identifier_reference_test.dart index e59b6fe..7f42294 100644 --- a/tests/language/prefix/identifier_reference_test.dart +++ b/tests/language/prefix/identifier_reference_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Validate the following spec text from section 16.32 (Identifier Reference): // Evaluation of an identifier expression e of the form id proceeds as // follows:
diff --git a/tests/language/redirecting/factory_bounds_test.dart b/tests/language/redirecting/factory_bounds_test.dart index fcc2f54..b10e2d2 100644 --- a/tests/language/redirecting/factory_bounds_test.dart +++ b/tests/language/redirecting/factory_bounds_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Bounds checking on redirecting factories. class Foo<T> {}
diff --git a/tests/language/redirecting/factory_infinite_steps_test.dart b/tests/language/redirecting/factory_infinite_steps_test.dart index d70a86f..f8250dc 100644 --- a/tests/language/redirecting/factory_infinite_steps_test.dart +++ b/tests/language/redirecting/factory_infinite_steps_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // From Dart Language Specification, 0.12 M1, "7.6.2 Factories": It is // a compile-time error if a redirecting factory constructor does not // redirect to a non-redirecting factory constructor or to a
diff --git a/tests/language/redirecting/factory_upcast_test.dart b/tests/language/redirecting/factory_upcast_test.dart index ff3ad11..3295df4 100644 --- a/tests/language/redirecting/factory_upcast_test.dart +++ b/tests/language/redirecting/factory_upcast_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + class A implements B { var x; A(Object this.x);
diff --git a/tests/language/regress/regress22780_test.dart b/tests/language/regress/regress22780_test.dart index 34dabd6..c080605 100644 --- a/tests/language/regress/regress22780_test.dart +++ b/tests/language/regress/regress22780_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + main() { f() => "Oh, the joy of ${f()}"; print(f()); //# 01: runtime error }
diff --git a/tests/language/regress/regress23051_test.dart b/tests/language/regress/regress23051_test.dart index f9837de..e8d1d35 100644 --- a/tests/language/regress/regress23051_test.dart +++ b/tests/language/regress/regress23051_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Regression test for issue 23051. main() {
diff --git a/tests/language/regress/regress23500_test.dart b/tests/language/regress/regress23500_test.dart index 6278fd6..43fcf04 100644 --- a/tests/language/regress/regress23500_test.dart +++ b/tests/language/regress/regress23500_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import "dart:async"; import "package:expect/expect.dart";
diff --git a/tests/language/regress/regress24935_test.dart b/tests/language/regress/regress24935_test.dart index 22c37d4..c55ab40 100644 --- a/tests/language/regress/regress24935_test.dart +++ b/tests/language/regress/regress24935_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import 'dart:async'; import 'package:expect/async_helper.dart';
diff --git a/tests/language/regress/regress28217_test.dart b/tests/language/regress/regress28217_test.dart index a49876f..8c43512 100644 --- a/tests/language/regress/regress28217_test.dart +++ b/tests/language/regress/regress28217_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test non-existing redirecting constructor and // redirecting to a factory constructor.
diff --git a/tests/language/regress/regress28268_test.dart b/tests/language/regress/regress28268_test.dart index a2a0bd5..af6b9f9 100644 --- a/tests/language/regress/regress28268_test.dart +++ b/tests/language/regress/regress28268_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import 'package:expect/expect.dart'; class E {
diff --git a/tests/language/regress/regress31596_override_test.dart b/tests/language/regress/regress31596_override_test.dart index 592ae44..0e16afc 100644 --- a/tests/language/regress/regress31596_override_test.dart +++ b/tests/language/regress/regress31596_override_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + class I0 {} class A {}
diff --git a/tests/language/regress/regress32660_test.dart b/tests/language/regress/regress32660_test.dart index 081e4d2..a589c94 100644 --- a/tests/language/regress/regress32660_test.dart +++ b/tests/language/regress/regress32660_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // noSuchMethod does not overwrite actual implementations, so if an // implementation of a member exists that doesn't fulfill the interface it's // an error.
diff --git a/tests/language/regress/regress34225_test.dart b/tests/language/regress/regress34225_test.dart index 0117672..dcfd78e 100644 --- a/tests/language/regress/regress34225_test.dart +++ b/tests/language/regress/regress34225_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + class C { static set C(v) {} //# 01: compile-time error set C(v) {} //# 02: compile-time error
diff --git a/tests/language/regress/regress6725_test.dart b/tests/language/regress/regress6725_test.dart index 96df166..e7e8505 100644 --- a/tests/language/regress/regress6725_test.dart +++ b/tests/language/regress/regress6725_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Regression test for a crash in dart2js. library crash_6725;
diff --git a/tests/language/script/script2_test.dart b/tests/language/script/script2_test.dart index 958ac20..68ee41a 100644 --- a/tests/language/script/script2_test.dart +++ b/tests/language/script/script2_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + /// Part file has library and import directives. // TODO(rnystrom): Using a multitest instead of making this a static error test
diff --git a/tests/language/set_literals/invalid_set_literal_test.dart b/tests/language/set_literals/invalid_set_literal_test.dart index 3030d53..1494813 100644 --- a/tests/language/set_literals/invalid_set_literal_test.dart +++ b/tests/language/set_literals/invalid_set_literal_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import "dart:collection" show HashSet, LinkedHashSet; import "package:expect/expect.dart";
diff --git a/tests/language/setter/override2_test.dart b/tests/language/setter/override2_test.dart index 80902b7..375715a 100644 --- a/tests/language/setter/override2_test.dart +++ b/tests/language/setter/override2_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that we do not report a compile-time error when an instance setter named // foo= is declared in a class inheriting an instance method, field, or getter // named foo, or an instance setter named foo=.
diff --git a/tests/language/setter/override_test.dart b/tests/language/setter/override_test.dart index 88d7402..698c091 100644 --- a/tests/language/setter/override_test.dart +++ b/tests/language/setter/override_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that we do not report a compile-time error when a static setter named // foo= is declared in a class inheriting an instance method or getter named // foo, and that we do report an error if an instance setter named foo= or
diff --git a/tests/language/spread_collections/const_error_test.dart b/tests/language/spread_collections/const_error_test.dart index e9fcfd2..8d3c649 100644 --- a/tests/language/spread_collections/const_error_test.dart +++ b/tests/language/spread_collections/const_error_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import 'dart:collection'; import 'helper_classes.dart';
diff --git a/tests/language/spread_collections/map_set_ambiguity_error_test.dart b/tests/language/spread_collections/map_set_ambiguity_error_test.dart index 00f40a8..9107f99 100644 --- a/tests/language/spread_collections/map_set_ambiguity_error_test.dart +++ b/tests/language/spread_collections/map_set_ambiguity_error_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test cases where the syntax is ambiguous between maps and sets. import 'dart:collection';
diff --git a/tests/language/spread_collections/syntax_error_test.dart b/tests/language/spread_collections/syntax_error_test.dart index 825e5dd2..df9a401 100644 --- a/tests/language/spread_collections/syntax_error_test.dart +++ b/tests/language/spread_collections/syntax_error_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + void main() { // Spread nothing. var _ = [...]; //# 00: syntax error
diff --git a/tests/language/spread_collections/type_error_test.dart b/tests/language/spread_collections/type_error_test.dart index 3fe731a..04cc3dd 100644 --- a/tests/language/spread_collections/type_error_test.dart +++ b/tests/language/spread_collections/type_error_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + void main() { // Spread non-iterable or non-map. var _ = [...(3)]; //# 00: compile-time error
diff --git a/tests/language/stack_trace/rethrow_error_test.dart b/tests/language/stack_trace/rethrow_error_test.dart index ae1f042..8acab9f 100644 --- a/tests/language/stack_trace/rethrow_error_test.dart +++ b/tests/language/stack_trace/rethrow_error_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + class SubclassOfError extends Error {} fail() => throw "Fail";
diff --git a/tests/language/static/field_test.dart b/tests/language/static/field_test.dart index ed054f6..929338c 100644 --- a/tests/language/static/field_test.dart +++ b/tests/language/static/field_test.dart
@@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing setting/getting/initializing static fields. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class First {
diff --git a/tests/language/static/parameter_test.dart b/tests/language/static/parameter_test.dart index 24ccbf7..710aacd 100644 --- a/tests/language/static/parameter_test.dart +++ b/tests/language/static/parameter_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + foo(x , static int y // //# 01: syntax error , final static y // //# 02: syntax error
diff --git a/tests/language/static/setter_conflicts_test.dart b/tests/language/static/setter_conflicts_test.dart index c8e4395..1c7fcc3 100644 --- a/tests/language/static/setter_conflicts_test.dart +++ b/tests/language/static/setter_conflicts_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + class C { static set foo(int x) {}
diff --git a/tests/language/super/bound_closure_test.dart b/tests/language/super/bound_closure_test.dart index f70256c..dcbc624 100644 --- a/tests/language/super/bound_closure_test.dart +++ b/tests/language/super/bound_closure_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class A {
diff --git a/tests/language/super/operator_index_test.dart b/tests/language/super/operator_index_test.dart index 81dd172..0c6207b 100644 --- a/tests/language/super/operator_index_test.dart +++ b/tests/language/super/operator_index_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that we emit errors for unresolved indexing operations on super. class A {
diff --git a/tests/language/superinterface_variance/abstract_class_error_test.dart b/tests/language/superinterface_variance/abstract_class_error_test.dart index 47367d1..2ea9668 100644 --- a/tests/language/superinterface_variance/abstract_class_error_test.dart +++ b/tests/language/superinterface_variance/abstract_class_error_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + typedef F1<X> = void Function(X); typedef F2<X> = X Function(X); typedef F3<X> = void Function<Y extends X>();
diff --git a/tests/language/superinterface_variance/abstract_mixin_application_error_test.dart b/tests/language/superinterface_variance/abstract_mixin_application_error_test.dart index 0362eab..05386b4 100644 --- a/tests/language/superinterface_variance/abstract_mixin_application_error_test.dart +++ b/tests/language/superinterface_variance/abstract_mixin_application_error_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + typedef F1<X> = void Function(X); typedef F2<X> = X Function(X); typedef F3<X> = void Function<Y extends X>();
diff --git a/tests/language/superinterface_variance/concrete_class_error_test.dart b/tests/language/superinterface_variance/concrete_class_error_test.dart index 3d8ac1e..76416f9 100644 --- a/tests/language/superinterface_variance/concrete_class_error_test.dart +++ b/tests/language/superinterface_variance/concrete_class_error_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + typedef F1<X> = void Function(X); typedef F2<X> = X Function(X); typedef F3<X> = void Function<Y extends X>();
diff --git a/tests/language/superinterface_variance/concrete_mixin_application_error_test.dart b/tests/language/superinterface_variance/concrete_mixin_application_error_test.dart index b9b658d..2461c99 100644 --- a/tests/language/superinterface_variance/concrete_mixin_application_error_test.dart +++ b/tests/language/superinterface_variance/concrete_mixin_application_error_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + typedef F1<X> = void Function(X); typedef F2<X> = X Function(X); typedef F3<X> = void Function<Y extends X>();
diff --git a/tests/language/superinterface_variance/mixin_error_test.dart b/tests/language/superinterface_variance/mixin_error_test.dart index 14963f3..d0ac9a7 100644 --- a/tests/language/superinterface_variance/mixin_error_test.dart +++ b/tests/language/superinterface_variance/mixin_error_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + typedef F1<X> = void Function(X); typedef F2<X> = X Function(X); typedef F3<X> = void Function<Y extends X>();
diff --git a/tests/language/sync_star/generator2_test.dart b/tests/language/sync_star/generator2_test.dart index 051b6b2..f83261c 100644 --- a/tests/language/sync_star/generator2_test.dart +++ b/tests/language/sync_star/generator2_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Simple test program for sync* generator functions. import "package:expect/expect.dart";
diff --git a/tests/language/sync_star/generator3_test.dart b/tests/language/sync_star/generator3_test.dart index d8646df..7f4a745 100644 --- a/tests/language/sync_star/generator3_test.dart +++ b/tests/language/sync_star/generator3_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test program for sync* generator functions and yielding in try blocks. import "package:expect/expect.dart";
diff --git a/tests/language/sync_star/yield_test.dart b/tests/language/sync_star/yield_test.dart index 77e5594..51300d2 100644 --- a/tests/language/sync_star/yield_test.dart +++ b/tests/language/sync_star/yield_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // TODO(jmesserly): this is a copy of the language test of the same name, // we can remove this copy when we're running against those tests. import "package:expect/expect.dart";
diff --git a/tests/language/syntax/deep_nesting_expression_test.dart b/tests/language/syntax/deep_nesting_expression_test.dart index 5ab1db5..83c2da8 100644 --- a/tests/language/syntax/deep_nesting_expression_test.dart +++ b/tests/language/syntax/deep_nesting_expression_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Deeply nested expression must not crash compiler due to stack overflow. main() {
diff --git a/tests/language/syntax/deep_nesting_statement_test.dart b/tests/language/syntax/deep_nesting_statement_test.dart index bb00024..5b6842c 100644 --- a/tests/language/syntax/deep_nesting_statement_test.dart +++ b/tests/language/syntax/deep_nesting_statement_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Deeply nested statements must not crash compiler due to stack overflow. var x = 0;
diff --git a/tests/language/syntax/syntax_test.dart b/tests/language/syntax/syntax_test.dart index cc02c92..6339a36 100644 --- a/tests/language/syntax/syntax_test.dart +++ b/tests/language/syntax/syntax_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + class SyntaxTest { // "this" cannot be used as a field name. SyntaxTest this; //# 01: syntax error
diff --git a/tests/language/syntax/unbalanced_brace_test.dart b/tests/language/syntax/unbalanced_brace_test.dart index 5e889ccc..8a09c6c 100644 --- a/tests/language/syntax/unbalanced_brace_test.dart +++ b/tests/language/syntax/unbalanced_brace_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test syntax errors related to unterminated braces. class A {
diff --git a/tests/language/this/in_initializer_test.dart b/tests/language/this/in_initializer_test.dart index 554c15c..1a7c5c9 100644 --- a/tests/language/this/in_initializer_test.dart +++ b/tests/language/this/in_initializer_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + class A { static String? s = "something"; var a = "anything";
diff --git a/tests/language/top_level/collision1_test.dart b/tests/language/top_level/collision1_test.dart index f8d97c4b..8423636 100644 --- a/tests/language/top_level/collision1_test.dart +++ b/tests/language/top_level/collision1_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + int x = 100; get x => 200; // //# 00: compile-time error
diff --git a/tests/language/top_level/collision2_test.dart b/tests/language/top_level/collision2_test.dart index 0d9734e..b389446 100644 --- a/tests/language/top_level/collision2_test.dart +++ b/tests/language/top_level/collision2_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + get x => 200; // Ok: can have a setter named x when getter x is defined.
diff --git a/tests/language/type/alias_equality_test.dart b/tests/language/type/alias_equality_test.dart index 7ee087a..a9638e5 100644 --- a/tests/language/type/alias_equality_test.dart +++ b/tests/language/type/alias_equality_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that type aliases perform equality tests according to the // underlying function type, not as if they were a distinct type // for each type alias declaration.
diff --git a/tests/language/type/constants_test.dart b/tests/language/type/constants_test.dart index 9c83212..f1266c0 100644 --- a/tests/language/type/constants_test.dart +++ b/tests/language/type/constants_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that the value of constant type literals are allowed as // constant map keys and case expressions, and the value of non-constant type // literals are not.
diff --git a/tests/language/type_variable/bounds_test.dart b/tests/language/type_variable/bounds_test.dart index c23942d..6bc2c16 100644 --- a/tests/language/type_variable/bounds_test.dart +++ b/tests/language/type_variable/bounds_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test of parameterized factory methods. class Foo<T extends num> {
diff --git a/tests/language/type_variable/nested_test.dart b/tests/language/type_variable/nested_test.dart index 423ce6d..c32ada6 100644 --- a/tests/language/type_variable/nested_test.dart +++ b/tests/language/type_variable/nested_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Regression test for // http://code.google.com/p/dart/issues/detail?id=9050.
diff --git a/tests/language/typedef/cyclic_test.dart b/tests/language/typedef/cyclic_test.dart index 6da9ad6..39e6cd1 100644 --- a/tests/language/typedef/cyclic_test.dart +++ b/tests/language/typedef/cyclic_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Check that cyclic reference of a typedef is a compile-time error. // To test various cyclic references the definition of the [:typedef A():] is
diff --git a/tests/language/unsorted/arg_param_trailing_comma_test.dart b/tests/language/unsorted/arg_param_trailing_comma_test.dart index 9119dfa..88bdddc 100644 --- a/tests/language/unsorted/arg_param_trailing_comma_test.dart +++ b/tests/language/unsorted/arg_param_trailing_comma_test.dart
@@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing params. +// Formatting can break multitests, so don't format them. +// dart format off + // Convenience values. var c = new C(); var x = 42;
diff --git a/tests/language/unsorted/cast_test.dart b/tests/language/unsorted/cast_test.dart index 5f14ccd..205b4c7 100644 --- a/tests/language/unsorted/cast_test.dart +++ b/tests/language/unsorted/cast_test.dart
@@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; // Test 'expression as Type' casts.
diff --git a/tests/language/unsorted/cyclic_type_test.dart b/tests/language/unsorted/cyclic_type_test.dart index 5a9c320..9d7e288 100644 --- a/tests/language/unsorted/cyclic_type_test.dart +++ b/tests/language/unsorted/cyclic_type_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Prevent obfuscation: // dart2jsOptions=--no-minify
diff --git a/tests/language/unsorted/default_implementation2_test.dart b/tests/language/unsorted/default_implementation2_test.dart index 0a3607c..b804179 100644 --- a/tests/language/unsorted/default_implementation2_test.dart +++ b/tests/language/unsorted/default_implementation2_test.dart
@@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Dart test to verify incompatible constructor types +// Formatting can break multitests, so don't format them. +// dart format off + abstract class Point { factory Point(int x, int y) = PointImplementation; //# 01: ok factory Point(x, y) = PointImplementation; //# 02: compile-time error
diff --git a/tests/language/unsorted/extend_type_parameter_test.dart b/tests/language/unsorted/extend_type_parameter_test.dart index 58991f5..6f5ccbe 100644 --- a/tests/language/unsorted/extend_type_parameter_test.dart +++ b/tests/language/unsorted/extend_type_parameter_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Extending a type parameter is not allowed. abstract class A<T> extends T {} // //# 00: compile-time error
diff --git a/tests/language/unsorted/fuzzy_arrows_test.dart b/tests/language/unsorted/fuzzy_arrows_test.dart index 4cbe86c..840c0b5 100644 --- a/tests/language/unsorted/fuzzy_arrows_test.dart +++ b/tests/language/unsorted/fuzzy_arrows_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Fuzzy arrows will be eliminated from Dart 2.0 soon. This test checks that // implementations have properly removed fuzzy arrow support, both at compile // time and at run time. See dartbug.com/29630 for a detailed explanation.
diff --git a/tests/language/unsorted/illegal_declaration_test.dart b/tests/language/unsorted/illegal_declaration_test.dart index 6b8714b..79f98ee 100644 --- a/tests/language/unsorted/illegal_declaration_test.dart +++ b/tests/language/unsorted/illegal_declaration_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + [ //# 01: syntax error main() {}
diff --git a/tests/language/unsorted/keyword_type_expression_test.dart b/tests/language/unsorted/keyword_type_expression_test.dart index 5d981ef..5703324 100644 --- a/tests/language/unsorted/keyword_type_expression_test.dart +++ b/tests/language/unsorted/keyword_type_expression_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that a keyword can't be used as type. Serves as regression test for // crashes in dart2js.
diff --git a/tests/language/variable/conflicting_type_variable_and_setter_test.dart b/tests/language/variable/conflicting_type_variable_and_setter_test.dart index 1ec0ee6..09dec2a 100644 --- a/tests/language/variable/conflicting_type_variable_and_setter_test.dart +++ b/tests/language/variable/conflicting_type_variable_and_setter_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class C<
diff --git a/tests/language/variable/cyclic_type_variable_test.dart b/tests/language/variable/cyclic_type_variable_test.dart index 78b2512..8c7818b 100644 --- a/tests/language/variable/cyclic_type_variable_test.dart +++ b/tests/language/variable/cyclic_type_variable_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Tests cyclic reference to type variables in type expressions class Base<T> {}
diff --git a/tests/language/variable/fixed_type_variable2_test.dart b/tests/language/variable/fixed_type_variable2_test.dart index 0cb6790..481dc56 100644 --- a/tests/language/variable/fixed_type_variable2_test.dart +++ b/tests/language/variable/fixed_type_variable2_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that type variables are passed on from subtypes that fixed the type // variable in inheritance.
diff --git a/tests/language/variable/fixed_type_variable_test.dart b/tests/language/variable/fixed_type_variable_test.dart index 24dc231..0065f93 100644 --- a/tests/language/variable/fixed_type_variable_test.dart +++ b/tests/language/variable/fixed_type_variable_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that type variables are passed on from subtypes that fixed the type // variable in inheritance.
diff --git a/tests/language/variable/variable_declaration_metadata_test.dart b/tests/language/variable/variable_declaration_metadata_test.dart index 24793de..f2d9501 100644 --- a/tests/language/variable/variable_declaration_metadata_test.dart +++ b/tests/language/variable/variable_declaration_metadata_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Verify that the individual variable declarations inside a variable // declaration list are not allowed to be annotated with metadata.
diff --git a/tests/language/vm/bool_check_stack_traces_test.dart b/tests/language/vm/bool_check_stack_traces_test.dart index 4daab74..18caae5 100644 --- a/tests/language/vm/bool_check_stack_traces_test.dart +++ b/tests/language/vm/bool_check_stack_traces_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; import "package:expect/variations.dart"; @@ -102,9 +105,9 @@ } main() { - testStackTrace(test1, [10, 19]); - testStackTrace(test2, [27, 36]); - testStackTrace(test3, [46, 55]); - testStackTrace(test4, [61]); //# 01: ok - testStackTrace(test5, [68]); //# 02: ok + testStackTrace(test1, [13, 22]); + testStackTrace(test2, [30, 39]); + testStackTrace(test3, [49, 58]); + testStackTrace(test4, [64]); //# 01: ok + testStackTrace(test5, [71]); //# 02: ok }
diff --git a/tests/language/vm/regress_33469_test.dart b/tests/language/vm/regress_33469_test.dart index 831704e..d3c6a1c 100644 --- a/tests/language/vm/regress_33469_test.dart +++ b/tests/language/vm/regress_33469_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + class X { final x; const X(this.x);
diff --git a/tests/language/vm/regression_32912_test.dart b/tests/language/vm/regression_32912_test.dart index 2a63ff6..fe7544a 100644 --- a/tests/language/vm/regression_32912_test.dart +++ b/tests/language/vm/regression_32912_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + dynamic _defaultCallback<T>(T t) => t; void bar<T>([dynamic Function(T) f = _defaultCallback]) {} //# 01: compile-time error
diff --git a/tests/language/vm/symbols_test.dart b/tests/language/vm/symbols_test.dart index d605a3a..89ae47f 100644 --- a/tests/language/vm/symbols_test.dart +++ b/tests/language/vm/symbols_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import 'package:expect/expect.dart'; void main() {
diff --git a/tests/language/vm/type_vm_test.dart b/tests/language/vm/type_vm_test.dart index 14189b6..aa3017d 100644 --- a/tests/language/vm/type_vm_test.dart +++ b/tests/language/vm/type_vm_test.dart
@@ -4,6 +4,9 @@ // VMOptions=--enable_type_checks --enable_asserts --no_show_internal_names // Dart test program testing type checks. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class C {
diff --git a/tests/language/void/return_future_future_or_void_async_error1_test.dart b/tests/language/void/return_future_future_or_void_async_error1_test.dart index daf1667..9aaec08 100644 --- a/tests/language/void/return_future_future_or_void_async_error1_test.dart +++ b/tests/language/void/return_future_future_or_void_async_error1_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import 'dart:async'; void main() {
diff --git a/tests/language/void/return_future_or_future_or_void_sync_error2_test.dart b/tests/language/void/return_future_or_future_or_void_sync_error2_test.dart index 6a09786..54efb25 100644 --- a/tests/language/void/return_future_or_future_or_void_sync_error2_test.dart +++ b/tests/language/void/return_future_or_future_or_void_sync_error2_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import 'dart:async'; void main() {
diff --git a/tests/language/void/return_future_or_void_sync_error4_test.dart b/tests/language/void/return_future_or_void_sync_error4_test.dart index c1defcb..c62cc69 100644 --- a/tests/language/void/return_future_or_void_sync_error4_test.dart +++ b/tests/language/void/return_future_or_void_sync_error4_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + import 'dart:async'; void main() {
diff --git a/tests/language/void/void_block_return_test.dart b/tests/language/void/void_block_return_test.dart index 8dd8bad..1f6a60a 100644 --- a/tests/language/void/void_block_return_test.dart +++ b/tests/language/void/void_block_return_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Testing that a void block function is not allowed to `return e` // where `e` is non-void.
diff --git a/tests/language/void/void_type_function_types_test.dart b/tests/language/void/void_type_function_types_test.dart index db4f880..ecb174b 100644 --- a/tests/language/void/void_type_function_types_test.dart +++ b/tests/language/void/void_type_function_types_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Dart test for type checks involving the void type in function types. import 'package:expect/expect.dart';
diff --git a/tests/language/void/void_type_override_test.dart b/tests/language/void/void_type_override_test.dart index d4749ad..b734780 100644 --- a/tests/language/void/void_type_override_test.dart +++ b/tests/language/void/void_type_override_test.dart
@@ -2,6 +2,9 @@ // 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. +// Formatting can break multitests, so don't format them. +// dart format off + // Dart test for type checks involving the void type and overriding. import 'package:expect/expect.dart';
diff --git a/tools/VERSION b/tools/VERSION index bf0a92d..6650f8c 100644 --- a/tools/VERSION +++ b/tools/VERSION
@@ -27,5 +27,5 @@ MAJOR 3 MINOR 7 PATCH 0 -PRERELEASE 173 +PRERELEASE 174 PRERELEASE_PATCH 0