diff --git a/pkg/front_end/testcases/patterns/boolean_literal_inside_case.dart b/pkg/front_end/testcases/patterns/boolean_literal_inside_case.dart index 2010c5543df..c993f981102 100644 --- a/pkg/front_end/testcases/patterns/boolean_literal_inside_case.dart +++ b/pkg/front_end/testcases/patterns/boolean_literal_inside_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case true: diff --git a/pkg/front_end/testcases/patterns/boolean_literal_inside_cast.dart b/pkg/front_end/testcases/patterns/boolean_literal_inside_cast.dart index 33dadd4d003..e066093ddfc 100644 --- a/pkg/front_end/testcases/patterns/boolean_literal_inside_cast.dart +++ b/pkg/front_end/testcases/patterns/boolean_literal_inside_cast.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case true as Object: diff --git a/pkg/front_end/testcases/patterns/boolean_literal_inside_if_case.dart b/pkg/front_end/testcases/patterns/boolean_literal_inside_if_case.dart index 0bc9844a38d..284e66cf72d 100644 --- a/pkg/front_end/testcases/patterns/boolean_literal_inside_if_case.dart +++ b/pkg/front_end/testcases/patterns/boolean_literal_inside_if_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { if (x case true) {} } diff --git a/pkg/front_end/testcases/patterns/boolean_literal_inside_null_assert.dart b/pkg/front_end/testcases/patterns/boolean_literal_inside_null_assert.dart index da66dd092d2..fd41e9f1208 100644 --- a/pkg/front_end/testcases/patterns/boolean_literal_inside_null_assert.dart +++ b/pkg/front_end/testcases/patterns/boolean_literal_inside_null_assert.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case true!: diff --git a/pkg/front_end/testcases/patterns/boolean_literal_inside_null_check.dart b/pkg/front_end/testcases/patterns/boolean_literal_inside_null_check.dart index bcc27cc10c3..6d0014fba32 100644 --- a/pkg/front_end/testcases/patterns/boolean_literal_inside_null_check.dart +++ b/pkg/front_end/testcases/patterns/boolean_literal_inside_null_check.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case true?: diff --git a/pkg/front_end/testcases/patterns/caseHead_withClassicPattern_guarded_insideIfStatement.dart b/pkg/front_end/testcases/patterns/caseHead_withClassicPattern_guarded_insideIfStatement.dart index f1abcf19f72..15c384e8219 100644 --- a/pkg/front_end/testcases/patterns/caseHead_withClassicPattern_guarded_insideIfStatement.dart +++ b/pkg/front_end/testcases/patterns/caseHead_withClassicPattern_guarded_insideIfStatement.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + void f(x) { if (x case 0 when true) {} } diff --git a/pkg/front_end/testcases/patterns/caseHead_withClassicPattern_guarded_insideSwitchStatement.dart b/pkg/front_end/testcases/patterns/caseHead_withClassicPattern_guarded_insideSwitchStatement.dart index b67821123be..eb24b2bcb62 100644 --- a/pkg/front_end/testcases/patterns/caseHead_withClassicPattern_guarded_insideSwitchStatement.dart +++ b/pkg/front_end/testcases/patterns/caseHead_withClassicPattern_guarded_insideSwitchStatement.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + void f(x) { switch (x) { case 0 when true: diff --git a/pkg/front_end/testcases/patterns/caseHead_withNewPattern_guarded_insideIfStatement.dart b/pkg/front_end/testcases/patterns/caseHead_withNewPattern_guarded_insideIfStatement.dart index 833315c835a..1c84773ef66 100644 --- a/pkg/front_end/testcases/patterns/caseHead_withNewPattern_guarded_insideIfStatement.dart +++ b/pkg/front_end/testcases/patterns/caseHead_withNewPattern_guarded_insideIfStatement.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + void f(x) { if (x case 0 as int when true) {} } diff --git a/pkg/front_end/testcases/patterns/caseHead_withNewPattern_guarded_insideSwitchStatement.dart b/pkg/front_end/testcases/patterns/caseHead_withNewPattern_guarded_insideSwitchStatement.dart index 7db6d2fdcb0..32f5103125a 100644 --- a/pkg/front_end/testcases/patterns/caseHead_withNewPattern_guarded_insideSwitchStatement.dart +++ b/pkg/front_end/testcases/patterns/caseHead_withNewPattern_guarded_insideSwitchStatement.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + void f(x) { switch (x) { case 0 as int when true: diff --git a/pkg/front_end/testcases/patterns/cast_inside_case.dart b/pkg/front_end/testcases/patterns/cast_inside_case.dart index 839b1e9e1b1..2e12b6eb5e8 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_case.dart +++ b/pkg/front_end/testcases/patterns/cast_inside_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { const y = 1; switch (x) { diff --git a/pkg/front_end/testcases/patterns/cast_inside_extractor_pattern.dart b/pkg/front_end/testcases/patterns/cast_inside_extractor_pattern.dart index 94c2849eecd..bd598e763ae 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_extractor_pattern.dart +++ b/pkg/front_end/testcases/patterns/cast_inside_extractor_pattern.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + class C { int? f; } diff --git a/pkg/front_end/testcases/patterns/cast_inside_extractor_pattern_implicitly_named.dart b/pkg/front_end/testcases/patterns/cast_inside_extractor_pattern_implicitly_named.dart index 0a0628f23b7..df8ee4f0a75 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_extractor_pattern_implicitly_named.dart +++ b/pkg/front_end/testcases/patterns/cast_inside_extractor_pattern_implicitly_named.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + class C { int? f; } diff --git a/pkg/front_end/testcases/patterns/cast_inside_if_case.dart b/pkg/front_end/testcases/patterns/cast_inside_if_case.dart index 24b9975d479..9a7bb1dc753 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_if_case.dart +++ b/pkg/front_end/testcases/patterns/cast_inside_if_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { if (x case var y as int) {} } diff --git a/pkg/front_end/testcases/patterns/cast_inside_list_pattern.dart b/pkg/front_end/testcases/patterns/cast_inside_list_pattern.dart index b14e897ea19..5ca99bb3a48 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_list_pattern.dart +++ b/pkg/front_end/testcases/patterns/cast_inside_list_pattern.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case [1 as int]: diff --git a/pkg/front_end/testcases/patterns/cast_inside_logical_and_lhs.dart b/pkg/front_end/testcases/patterns/cast_inside_logical_and_lhs.dart index b2351ce0dd4..d5f7c35f929 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_logical_and_lhs.dart +++ b/pkg/front_end/testcases/patterns/cast_inside_logical_and_lhs.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case int? _ as double? & Object? _: diff --git a/pkg/front_end/testcases/patterns/cast_inside_logical_and_rhs.dart b/pkg/front_end/testcases/patterns/cast_inside_logical_and_rhs.dart index 6c32b0e84cc..ea74e6843ff 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_logical_and_rhs.dart +++ b/pkg/front_end/testcases/patterns/cast_inside_logical_and_rhs.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case int? _ & double? _ as Object?: diff --git a/pkg/front_end/testcases/patterns/cast_inside_logical_or_lhs.dart b/pkg/front_end/testcases/patterns/cast_inside_logical_or_lhs.dart index ad7bc01a32d..1bd6ce4adcc 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_logical_or_lhs.dart +++ b/pkg/front_end/testcases/patterns/cast_inside_logical_or_lhs.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case int? _ as double? | Object? _: diff --git a/pkg/front_end/testcases/patterns/cast_inside_logical_or_rhs.dart b/pkg/front_end/testcases/patterns/cast_inside_logical_or_rhs.dart index 73dc2fbb0f7..4ccd0667497 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_logical_or_rhs.dart +++ b/pkg/front_end/testcases/patterns/cast_inside_logical_or_rhs.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case int? _ | double? _ as Object?: diff --git a/pkg/front_end/testcases/patterns/cast_inside_map_pattern.dart b/pkg/front_end/testcases/patterns/cast_inside_map_pattern.dart index 0b2a7c27898..62730dff14b 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_map_pattern.dart +++ b/pkg/front_end/testcases/patterns/cast_inside_map_pattern.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case {'a': 1 as int}: diff --git a/pkg/front_end/testcases/patterns/cast_inside_parenthesized_pattern.dart b/pkg/front_end/testcases/patterns/cast_inside_parenthesized_pattern.dart index 00aa8e367ad..e611b9b24fe 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_parenthesized_pattern.dart +++ b/pkg/front_end/testcases/patterns/cast_inside_parenthesized_pattern.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case (1 as int): diff --git a/pkg/front_end/testcases/patterns/cast_inside_record_pattern_implicitly_named.dart b/pkg/front_end/testcases/patterns/cast_inside_record_pattern_implicitly_named.dart index a0acf48c815..b3ea62f235b 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_record_pattern_implicitly_named.dart +++ b/pkg/front_end/testcases/patterns/cast_inside_record_pattern_implicitly_named.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case (: var n as int, 2): diff --git a/pkg/front_end/testcases/patterns/cast_inside_record_pattern_named.dart b/pkg/front_end/testcases/patterns/cast_inside_record_pattern_named.dart index 7683724316f..a3cecc44cdd 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_record_pattern_named.dart +++ b/pkg/front_end/testcases/patterns/cast_inside_record_pattern_named.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case (n: 1 as int, 2): diff --git a/pkg/front_end/testcases/patterns/cast_inside_record_pattern_unnamed.dart b/pkg/front_end/testcases/patterns/cast_inside_record_pattern_unnamed.dart index 363ae75e7f3..808ed7d53c0 100644 --- a/pkg/front_end/testcases/patterns/cast_inside_record_pattern_unnamed.dart +++ b/pkg/front_end/testcases/patterns/cast_inside_record_pattern_unnamed.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case (1 as int, 2): diff --git a/pkg/front_end/testcases/patterns/constant_identifier_inside_case.dart b/pkg/front_end/testcases/patterns/constant_identifier_inside_case.dart index bbf32b5a571..3fc520b41d7 100644 --- a/pkg/front_end/testcases/patterns/constant_identifier_inside_case.dart +++ b/pkg/front_end/testcases/patterns/constant_identifier_inside_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { const y = 1; switch (x) { diff --git a/pkg/front_end/testcases/patterns/constant_identifier_inside_cast.dart b/pkg/front_end/testcases/patterns/constant_identifier_inside_cast.dart index 06346a3986c..c7a00781393 100644 --- a/pkg/front_end/testcases/patterns/constant_identifier_inside_cast.dart +++ b/pkg/front_end/testcases/patterns/constant_identifier_inside_cast.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { const y = 1; switch (x) { diff --git a/pkg/front_end/testcases/patterns/constant_identifier_inside_if_case.dart b/pkg/front_end/testcases/patterns/constant_identifier_inside_if_case.dart index e57dd1cc302..3c384d469b4 100644 --- a/pkg/front_end/testcases/patterns/constant_identifier_inside_if_case.dart +++ b/pkg/front_end/testcases/patterns/constant_identifier_inside_if_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { const y = 1; if (x case y) {} diff --git a/pkg/front_end/testcases/patterns/constant_identifier_inside_null_assert.dart b/pkg/front_end/testcases/patterns/constant_identifier_inside_null_assert.dart index 551a532fe47..abb35c7ee06 100644 --- a/pkg/front_end/testcases/patterns/constant_identifier_inside_null_assert.dart +++ b/pkg/front_end/testcases/patterns/constant_identifier_inside_null_assert.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { const y = 1; switch (x) { diff --git a/pkg/front_end/testcases/patterns/constant_identifier_inside_null_check.dart b/pkg/front_end/testcases/patterns/constant_identifier_inside_null_check.dart index 642f1e74664..ed492088d1a 100644 --- a/pkg/front_end/testcases/patterns/constant_identifier_inside_null_check.dart +++ b/pkg/front_end/testcases/patterns/constant_identifier_inside_null_check.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { const y = 1; switch (x) { diff --git a/pkg/front_end/testcases/patterns/double_literal_inside_case.dart b/pkg/front_end/testcases/patterns/double_literal_inside_case.dart index 6e2109d493d..9aff584431b 100644 --- a/pkg/front_end/testcases/patterns/double_literal_inside_case.dart +++ b/pkg/front_end/testcases/patterns/double_literal_inside_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case 1.0: diff --git a/pkg/front_end/testcases/patterns/double_literal_inside_case.dart.strong.expect b/pkg/front_end/testcases/patterns/double_literal_inside_case.dart.strong.expect index b2f8564181d..75624eafbd5 100644 --- a/pkg/front_end/testcases/patterns/double_literal_inside_case.dart.strong.expect +++ b/pkg/front_end/testcases/patterns/double_literal_inside_case.dart.strong.expect @@ -2,7 +2,7 @@ library /*isNonNullableByDefault*/; // // Problems in library: // -// pkg/front_end/testcases/patterns/double_literal_inside_case.dart:3:10: Error: Case expression '1.0' does not have a primitive operator '=='. +// pkg/front_end/testcases/patterns/double_literal_inside_case.dart:7:10: Error: Case expression '1.0' does not have a primitive operator '=='. // case 1.0: // ^ // diff --git a/pkg/front_end/testcases/patterns/double_literal_inside_case.dart.strong.transformed.expect b/pkg/front_end/testcases/patterns/double_literal_inside_case.dart.strong.transformed.expect index b2f8564181d..75624eafbd5 100644 --- a/pkg/front_end/testcases/patterns/double_literal_inside_case.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/patterns/double_literal_inside_case.dart.strong.transformed.expect @@ -2,7 +2,7 @@ library /*isNonNullableByDefault*/; // // Problems in library: // -// pkg/front_end/testcases/patterns/double_literal_inside_case.dart:3:10: Error: Case expression '1.0' does not have a primitive operator '=='. +// pkg/front_end/testcases/patterns/double_literal_inside_case.dart:7:10: Error: Case expression '1.0' does not have a primitive operator '=='. // case 1.0: // ^ // diff --git a/pkg/front_end/testcases/patterns/double_literal_inside_case.dart.weak.expect b/pkg/front_end/testcases/patterns/double_literal_inside_case.dart.weak.expect index b2f8564181d..75624eafbd5 100644 --- a/pkg/front_end/testcases/patterns/double_literal_inside_case.dart.weak.expect +++ b/pkg/front_end/testcases/patterns/double_literal_inside_case.dart.weak.expect @@ -2,7 +2,7 @@ library /*isNonNullableByDefault*/; // // Problems in library: // -// pkg/front_end/testcases/patterns/double_literal_inside_case.dart:3:10: Error: Case expression '1.0' does not have a primitive operator '=='. +// pkg/front_end/testcases/patterns/double_literal_inside_case.dart:7:10: Error: Case expression '1.0' does not have a primitive operator '=='. // case 1.0: // ^ // diff --git a/pkg/front_end/testcases/patterns/double_literal_inside_case.dart.weak.modular.expect b/pkg/front_end/testcases/patterns/double_literal_inside_case.dart.weak.modular.expect index b2f8564181d..75624eafbd5 100644 --- a/pkg/front_end/testcases/patterns/double_literal_inside_case.dart.weak.modular.expect +++ b/pkg/front_end/testcases/patterns/double_literal_inside_case.dart.weak.modular.expect @@ -2,7 +2,7 @@ library /*isNonNullableByDefault*/; // // Problems in library: // -// pkg/front_end/testcases/patterns/double_literal_inside_case.dart:3:10: Error: Case expression '1.0' does not have a primitive operator '=='. +// pkg/front_end/testcases/patterns/double_literal_inside_case.dart:7:10: Error: Case expression '1.0' does not have a primitive operator '=='. // case 1.0: // ^ // diff --git a/pkg/front_end/testcases/patterns/double_literal_inside_case.dart.weak.transformed.expect b/pkg/front_end/testcases/patterns/double_literal_inside_case.dart.weak.transformed.expect index b2f8564181d..75624eafbd5 100644 --- a/pkg/front_end/testcases/patterns/double_literal_inside_case.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/patterns/double_literal_inside_case.dart.weak.transformed.expect @@ -2,7 +2,7 @@ library /*isNonNullableByDefault*/; // // Problems in library: // -// pkg/front_end/testcases/patterns/double_literal_inside_case.dart:3:10: Error: Case expression '1.0' does not have a primitive operator '=='. +// pkg/front_end/testcases/patterns/double_literal_inside_case.dart:7:10: Error: Case expression '1.0' does not have a primitive operator '=='. // case 1.0: // ^ // diff --git a/pkg/front_end/testcases/patterns/double_literal_inside_cast.dart b/pkg/front_end/testcases/patterns/double_literal_inside_cast.dart index 1499eab3686..b33056da538 100644 --- a/pkg/front_end/testcases/patterns/double_literal_inside_cast.dart +++ b/pkg/front_end/testcases/patterns/double_literal_inside_cast.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case 1.0 as Object: diff --git a/pkg/front_end/testcases/patterns/double_literal_inside_if_case.dart b/pkg/front_end/testcases/patterns/double_literal_inside_if_case.dart index 5ddadfdc0a1..18e9c89aae9 100644 --- a/pkg/front_end/testcases/patterns/double_literal_inside_if_case.dart +++ b/pkg/front_end/testcases/patterns/double_literal_inside_if_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { if (x case 1.0) {} } diff --git a/pkg/front_end/testcases/patterns/double_literal_inside_null_assert.dart b/pkg/front_end/testcases/patterns/double_literal_inside_null_assert.dart index c310c19fd00..0f4b060f905 100644 --- a/pkg/front_end/testcases/patterns/double_literal_inside_null_assert.dart +++ b/pkg/front_end/testcases/patterns/double_literal_inside_null_assert.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case 1.0!: diff --git a/pkg/front_end/testcases/patterns/double_literal_inside_null_check.dart b/pkg/front_end/testcases/patterns/double_literal_inside_null_check.dart index afd0901e689..7edfbda578c 100644 --- a/pkg/front_end/testcases/patterns/double_literal_inside_null_check.dart +++ b/pkg/front_end/testcases/patterns/double_literal_inside_null_check.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case 1.0?: diff --git a/pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart b/pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart index fd3b2e617fa..bb0452147a6 100644 --- a/pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart +++ b/pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + f() { try { true ? : 2; diff --git a/pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart.strong.expect b/pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart.strong.expect index feef5e00e49..c4209c6333b 100644 --- a/pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart.strong.expect +++ b/pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart.strong.expect @@ -2,7 +2,7 @@ library /*isNonNullableByDefault*/; // // Problems in library: // -// pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:3:13: Error: Expected an identifier, but got ':'. +// pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:7:13: Error: Expected an identifier, but got ':'. // Try inserting an identifier before ':'. // true ? : 2; // ^ @@ -12,7 +12,7 @@ import "dart:core" as core; static method f() → dynamic { try { - true ?{invalid-type} invalid-expression "pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:3:13: Error: This couldn't be parsed. + true ?{invalid-type} invalid-expression "pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:7:13: Error: This couldn't be parsed. true ? : 2; ^" : 2; } diff --git a/pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart.strong.transformed.expect b/pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart.strong.transformed.expect index feef5e00e49..c4209c6333b 100644 --- a/pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart.strong.transformed.expect @@ -2,7 +2,7 @@ library /*isNonNullableByDefault*/; // // Problems in library: // -// pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:3:13: Error: Expected an identifier, but got ':'. +// pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:7:13: Error: Expected an identifier, but got ':'. // Try inserting an identifier before ':'. // true ? : 2; // ^ @@ -12,7 +12,7 @@ import "dart:core" as core; static method f() → dynamic { try { - true ?{invalid-type} invalid-expression "pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:3:13: Error: This couldn't be parsed. + true ?{invalid-type} invalid-expression "pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:7:13: Error: This couldn't be parsed. true ? : 2; ^" : 2; } diff --git a/pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart.weak.expect b/pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart.weak.expect index feef5e00e49..c4209c6333b 100644 --- a/pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart.weak.expect +++ b/pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart.weak.expect @@ -2,7 +2,7 @@ library /*isNonNullableByDefault*/; // // Problems in library: // -// pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:3:13: Error: Expected an identifier, but got ':'. +// pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:7:13: Error: Expected an identifier, but got ':'. // Try inserting an identifier before ':'. // true ? : 2; // ^ @@ -12,7 +12,7 @@ import "dart:core" as core; static method f() → dynamic { try { - true ?{invalid-type} invalid-expression "pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:3:13: Error: This couldn't be parsed. + true ?{invalid-type} invalid-expression "pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:7:13: Error: This couldn't be parsed. true ? : 2; ^" : 2; } diff --git a/pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart.weak.modular.expect b/pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart.weak.modular.expect index feef5e00e49..c4209c6333b 100644 --- a/pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart.weak.modular.expect +++ b/pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart.weak.modular.expect @@ -2,7 +2,7 @@ library /*isNonNullableByDefault*/; // // Problems in library: // -// pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:3:13: Error: Expected an identifier, but got ':'. +// pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:7:13: Error: Expected an identifier, but got ':'. // Try inserting an identifier before ':'. // true ? : 2; // ^ @@ -12,7 +12,7 @@ import "dart:core" as core; static method f() → dynamic { try { - true ?{invalid-type} invalid-expression "pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:3:13: Error: This couldn't be parsed. + true ?{invalid-type} invalid-expression "pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:7:13: Error: This couldn't be parsed. true ? : 2; ^" : 2; } diff --git a/pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart.weak.transformed.expect b/pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart.weak.transformed.expect index feef5e00e49..c4209c6333b 100644 --- a/pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart.weak.transformed.expect @@ -2,7 +2,7 @@ library /*isNonNullableByDefault*/; // // Problems in library: // -// pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:3:13: Error: Expected an identifier, but got ':'. +// pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:7:13: Error: Expected an identifier, but got ':'. // Try inserting an identifier before ':'. // true ? : 2; // ^ @@ -12,7 +12,7 @@ import "dart:core" as core; static method f() → dynamic { try { - true ?{invalid-type} invalid-expression "pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:3:13: Error: This couldn't be parsed. + true ?{invalid-type} invalid-expression "pkg/front_end/testcases/patterns/error_recovery_after_question_suffix_in_expression.dart:7:13: Error: This couldn't be parsed. true ? : 2; ^" : 2; } diff --git a/pkg/front_end/testcases/patterns/extractor_pattern_inside_cast.dart b/pkg/front_end/testcases/patterns/extractor_pattern_inside_cast.dart index e9c0965ee47..ec2ccb665b4 100644 --- a/pkg/front_end/testcases/patterns/extractor_pattern_inside_cast.dart +++ b/pkg/front_end/testcases/patterns/extractor_pattern_inside_cast.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + class C { int? f; } diff --git a/pkg/front_end/testcases/patterns/extractor_pattern_inside_null_assert.dart b/pkg/front_end/testcases/patterns/extractor_pattern_inside_null_assert.dart index ced59e0bc7e..ad420eef8a8 100644 --- a/pkg/front_end/testcases/patterns/extractor_pattern_inside_null_assert.dart +++ b/pkg/front_end/testcases/patterns/extractor_pattern_inside_null_assert.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + class C { int? f; } diff --git a/pkg/front_end/testcases/patterns/extractor_pattern_inside_null_check.dart b/pkg/front_end/testcases/patterns/extractor_pattern_inside_null_check.dart index b4b51230efb..cca16b9cc05 100644 --- a/pkg/front_end/testcases/patterns/extractor_pattern_inside_null_check.dart +++ b/pkg/front_end/testcases/patterns/extractor_pattern_inside_null_check.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + class C { int? f; } diff --git a/pkg/front_end/testcases/patterns/extractor_pattern_with_type_args.dart b/pkg/front_end/testcases/patterns/extractor_pattern_with_type_args.dart index b4536681fb7..d6950f19377 100644 --- a/pkg/front_end/testcases/patterns/extractor_pattern_with_type_args.dart +++ b/pkg/front_end/testcases/patterns/extractor_pattern_with_type_args.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + class C {} test(dynamic x) { diff --git a/pkg/front_end/testcases/patterns/extractor_pattern_with_type_args_inside_null_assert.dart b/pkg/front_end/testcases/patterns/extractor_pattern_with_type_args_inside_null_assert.dart index 0cecead7495..ae4cbe1a82a 100644 --- a/pkg/front_end/testcases/patterns/extractor_pattern_with_type_args_inside_null_assert.dart +++ b/pkg/front_end/testcases/patterns/extractor_pattern_with_type_args_inside_null_assert.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + class C { T? f; } diff --git a/pkg/front_end/testcases/patterns/final_variable_inside_case.dart b/pkg/front_end/testcases/patterns/final_variable_inside_case.dart index c86381a097a..2fb2683be0f 100644 --- a/pkg/front_end/testcases/patterns/final_variable_inside_case.dart +++ b/pkg/front_end/testcases/patterns/final_variable_inside_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case final y: diff --git a/pkg/front_end/testcases/patterns/final_variable_inside_cast.dart b/pkg/front_end/testcases/patterns/final_variable_inside_cast.dart index f282dc90ded..05ff4c9832a 100644 --- a/pkg/front_end/testcases/patterns/final_variable_inside_cast.dart +++ b/pkg/front_end/testcases/patterns/final_variable_inside_cast.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case final y as Object: diff --git a/pkg/front_end/testcases/patterns/final_variable_inside_if_case.dart b/pkg/front_end/testcases/patterns/final_variable_inside_if_case.dart index 3adc2c0e0a0..c5b6a7bcd48 100644 --- a/pkg/front_end/testcases/patterns/final_variable_inside_if_case.dart +++ b/pkg/front_end/testcases/patterns/final_variable_inside_if_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { if (x case final y) {} } diff --git a/pkg/front_end/testcases/patterns/final_variable_inside_null_assert.dart b/pkg/front_end/testcases/patterns/final_variable_inside_null_assert.dart index d9db6a1d5e7..98a9fb6327b 100644 --- a/pkg/front_end/testcases/patterns/final_variable_inside_null_assert.dart +++ b/pkg/front_end/testcases/patterns/final_variable_inside_null_assert.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case final y!: diff --git a/pkg/front_end/testcases/patterns/final_variable_inside_null_check.dart b/pkg/front_end/testcases/patterns/final_variable_inside_null_check.dart index cce20cd14bf..5cc333c7e16 100644 --- a/pkg/front_end/testcases/patterns/final_variable_inside_null_check.dart +++ b/pkg/front_end/testcases/patterns/final_variable_inside_null_check.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case final y?: diff --git a/pkg/front_end/testcases/patterns/integer_literal_inside_case.dart b/pkg/front_end/testcases/patterns/integer_literal_inside_case.dart index 0fec1617918..c576abeb5a7 100644 --- a/pkg/front_end/testcases/patterns/integer_literal_inside_case.dart +++ b/pkg/front_end/testcases/patterns/integer_literal_inside_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case 1: diff --git a/pkg/front_end/testcases/patterns/integer_literal_inside_cast.dart b/pkg/front_end/testcases/patterns/integer_literal_inside_cast.dart index 1406426a2d9..ad2ffb57dc1 100644 --- a/pkg/front_end/testcases/patterns/integer_literal_inside_cast.dart +++ b/pkg/front_end/testcases/patterns/integer_literal_inside_cast.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case 1 as Object: diff --git a/pkg/front_end/testcases/patterns/integer_literal_inside_if_case.dart b/pkg/front_end/testcases/patterns/integer_literal_inside_if_case.dart index e94db9afd6d..dee0dfbdc2b 100644 --- a/pkg/front_end/testcases/patterns/integer_literal_inside_if_case.dart +++ b/pkg/front_end/testcases/patterns/integer_literal_inside_if_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { if (x case 1) {} } diff --git a/pkg/front_end/testcases/patterns/integer_literal_inside_null_assert.dart b/pkg/front_end/testcases/patterns/integer_literal_inside_null_assert.dart index a5949903078..d318456a818 100644 --- a/pkg/front_end/testcases/patterns/integer_literal_inside_null_assert.dart +++ b/pkg/front_end/testcases/patterns/integer_literal_inside_null_assert.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case 1!: diff --git a/pkg/front_end/testcases/patterns/integer_literal_inside_null_check.dart b/pkg/front_end/testcases/patterns/integer_literal_inside_null_check.dart index 9566ccbd329..9add6357ed8 100644 --- a/pkg/front_end/testcases/patterns/integer_literal_inside_null_check.dart +++ b/pkg/front_end/testcases/patterns/integer_literal_inside_null_check.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case 1?: diff --git a/pkg/front_end/testcases/patterns/list_pattern_inside_case.dart b/pkg/front_end/testcases/patterns/list_pattern_inside_case.dart index 5a0d71ce070..71459693a7d 100644 --- a/pkg/front_end/testcases/patterns/list_pattern_inside_case.dart +++ b/pkg/front_end/testcases/patterns/list_pattern_inside_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case [1, 2]: diff --git a/pkg/front_end/testcases/patterns/list_pattern_inside_case_empty.dart b/pkg/front_end/testcases/patterns/list_pattern_inside_case_empty.dart index a324cd30773..554a9505e57 100644 --- a/pkg/front_end/testcases/patterns/list_pattern_inside_case_empty.dart +++ b/pkg/front_end/testcases/patterns/list_pattern_inside_case_empty.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case []: diff --git a/pkg/front_end/testcases/patterns/list_pattern_inside_case_empty_whitespace.dart b/pkg/front_end/testcases/patterns/list_pattern_inside_case_empty_whitespace.dart index a324cd30773..554a9505e57 100644 --- a/pkg/front_end/testcases/patterns/list_pattern_inside_case_empty_whitespace.dart +++ b/pkg/front_end/testcases/patterns/list_pattern_inside_case_empty_whitespace.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case []: diff --git a/pkg/front_end/testcases/patterns/list_pattern_inside_case_with_type_arguments.dart b/pkg/front_end/testcases/patterns/list_pattern_inside_case_with_type_arguments.dart index a157bf04084..3512380b172 100644 --- a/pkg/front_end/testcases/patterns/list_pattern_inside_case_with_type_arguments.dart +++ b/pkg/front_end/testcases/patterns/list_pattern_inside_case_with_type_arguments.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case [1, 2]: diff --git a/pkg/front_end/testcases/patterns/list_pattern_inside_cast.dart b/pkg/front_end/testcases/patterns/list_pattern_inside_cast.dart index 8ff639e9cec..6cdc6356f75 100644 --- a/pkg/front_end/testcases/patterns/list_pattern_inside_cast.dart +++ b/pkg/front_end/testcases/patterns/list_pattern_inside_cast.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case [1] as Object: diff --git a/pkg/front_end/testcases/patterns/list_pattern_inside_null_assert.dart b/pkg/front_end/testcases/patterns/list_pattern_inside_null_assert.dart index eb88027f624..b2580d9a0cf 100644 --- a/pkg/front_end/testcases/patterns/list_pattern_inside_null_assert.dart +++ b/pkg/front_end/testcases/patterns/list_pattern_inside_null_assert.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case [1]!: diff --git a/pkg/front_end/testcases/patterns/list_pattern_inside_null_check.dart b/pkg/front_end/testcases/patterns/list_pattern_inside_null_check.dart index e3f5eebb7a7..4752edf24b2 100644 --- a/pkg/front_end/testcases/patterns/list_pattern_inside_null_check.dart +++ b/pkg/front_end/testcases/patterns/list_pattern_inside_null_check.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case [1]?: diff --git a/pkg/front_end/testcases/patterns/logical_and_inside_if_case.dart b/pkg/front_end/testcases/patterns/logical_and_inside_if_case.dart index e61adebd921..300e377321c 100644 --- a/pkg/front_end/testcases/patterns/logical_and_inside_if_case.dart +++ b/pkg/front_end/testcases/patterns/logical_and_inside_if_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { if (x case int? _ & double? _) {} } diff --git a/pkg/front_end/testcases/patterns/logical_and_inside_logical_and_lhs.dart b/pkg/front_end/testcases/patterns/logical_and_inside_logical_and_lhs.dart index b8195b34c41..615844ee0f1 100644 --- a/pkg/front_end/testcases/patterns/logical_and_inside_logical_and_lhs.dart +++ b/pkg/front_end/testcases/patterns/logical_and_inside_logical_and_lhs.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case int? _ & double? _ & Object? _: diff --git a/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_lhs.dart b/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_lhs.dart index 2864da4bbe0..a7dcb264e6f 100644 --- a/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_lhs.dart +++ b/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_lhs.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case int? _ & double? _ | Object? _: diff --git a/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_rhs.dart b/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_rhs.dart index 08f6ee572c5..b949237dada 100644 --- a/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_rhs.dart +++ b/pkg/front_end/testcases/patterns/logical_and_inside_logical_or_rhs.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case int? _ | double? _ & Object? _: diff --git a/pkg/front_end/testcases/patterns/logical_or_inside_if_case.dart b/pkg/front_end/testcases/patterns/logical_or_inside_if_case.dart index 49c82b7d61f..8e2c853bbb2 100644 --- a/pkg/front_end/testcases/patterns/logical_or_inside_if_case.dart +++ b/pkg/front_end/testcases/patterns/logical_or_inside_if_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { if (x case int? _ | double? _) {} } diff --git a/pkg/front_end/testcases/patterns/logical_or_inside_logical_or_lhs.dart b/pkg/front_end/testcases/patterns/logical_or_inside_logical_or_lhs.dart index 594f152697a..281e2a415ab 100644 --- a/pkg/front_end/testcases/patterns/logical_or_inside_logical_or_lhs.dart +++ b/pkg/front_end/testcases/patterns/logical_or_inside_logical_or_lhs.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case int? _ | double? _ | Object? _: diff --git a/pkg/front_end/testcases/patterns/map_pattern_inside_case.dart b/pkg/front_end/testcases/patterns/map_pattern_inside_case.dart index 901134c5311..6165ee86e72 100644 --- a/pkg/front_end/testcases/patterns/map_pattern_inside_case.dart +++ b/pkg/front_end/testcases/patterns/map_pattern_inside_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case {'a': 1, 'b': 2}: diff --git a/pkg/front_end/testcases/patterns/map_pattern_inside_case_empty.dart b/pkg/front_end/testcases/patterns/map_pattern_inside_case_empty.dart index cb9625bc958..554c608c66c 100644 --- a/pkg/front_end/testcases/patterns/map_pattern_inside_case_empty.dart +++ b/pkg/front_end/testcases/patterns/map_pattern_inside_case_empty.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case {}: diff --git a/pkg/front_end/testcases/patterns/map_pattern_inside_case_with_type_arguments.dart b/pkg/front_end/testcases/patterns/map_pattern_inside_case_with_type_arguments.dart index f997a277774..d1d56ba8c7f 100644 --- a/pkg/front_end/testcases/patterns/map_pattern_inside_case_with_type_arguments.dart +++ b/pkg/front_end/testcases/patterns/map_pattern_inside_case_with_type_arguments.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case {'a': 1, 'b': 2}: diff --git a/pkg/front_end/testcases/patterns/map_pattern_inside_cast.dart b/pkg/front_end/testcases/patterns/map_pattern_inside_cast.dart index a98fd3b4569..84db589154d 100644 --- a/pkg/front_end/testcases/patterns/map_pattern_inside_cast.dart +++ b/pkg/front_end/testcases/patterns/map_pattern_inside_cast.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case {'a': 1} as Object: diff --git a/pkg/front_end/testcases/patterns/map_pattern_inside_if_case.dart b/pkg/front_end/testcases/patterns/map_pattern_inside_if_case.dart index 747678b0fa8..5545854c927 100644 --- a/pkg/front_end/testcases/patterns/map_pattern_inside_if_case.dart +++ b/pkg/front_end/testcases/patterns/map_pattern_inside_if_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { if (x case {'a': 1, 'b': 2}) {} } diff --git a/pkg/front_end/testcases/patterns/map_pattern_inside_null_assert.dart b/pkg/front_end/testcases/patterns/map_pattern_inside_null_assert.dart index 348cfc4ce2f..7745f93d24d 100644 --- a/pkg/front_end/testcases/patterns/map_pattern_inside_null_assert.dart +++ b/pkg/front_end/testcases/patterns/map_pattern_inside_null_assert.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case {'a': 1}!: diff --git a/pkg/front_end/testcases/patterns/map_pattern_inside_null_check.dart b/pkg/front_end/testcases/patterns/map_pattern_inside_null_check.dart index b92be3e3c09..5ac33c2820e 100644 --- a/pkg/front_end/testcases/patterns/map_pattern_inside_null_check.dart +++ b/pkg/front_end/testcases/patterns/map_pattern_inside_null_check.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case {'a': 1}?: diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_case.dart b/pkg/front_end/testcases/patterns/null_assert_inside_case.dart index 551a532fe47..abb35c7ee06 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_case.dart +++ b/pkg/front_end/testcases/patterns/null_assert_inside_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { const y = 1; switch (x) { diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_extractor_pattern.dart b/pkg/front_end/testcases/patterns/null_assert_inside_extractor_pattern.dart index 1da35edc72f..a73bbf9817c 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_extractor_pattern.dart +++ b/pkg/front_end/testcases/patterns/null_assert_inside_extractor_pattern.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + class C { int? f; } diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_extractor_pattern_implicitly_named.dart b/pkg/front_end/testcases/patterns/null_assert_inside_extractor_pattern_implicitly_named.dart index 57cdf02cb09..222679c257d 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_extractor_pattern_implicitly_named.dart +++ b/pkg/front_end/testcases/patterns/null_assert_inside_extractor_pattern_implicitly_named.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + class C { int? f; } diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_if_case.dart b/pkg/front_end/testcases/patterns/null_assert_inside_if_case.dart index 72748e848c4..ab36d912fbf 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_if_case.dart +++ b/pkg/front_end/testcases/patterns/null_assert_inside_if_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { if (x case var y!) {} } diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_list_pattern.dart b/pkg/front_end/testcases/patterns/null_assert_inside_list_pattern.dart index 8ca83384796..2f233ed2316 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_list_pattern.dart +++ b/pkg/front_end/testcases/patterns/null_assert_inside_list_pattern.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case [1!]: diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_lhs.dart b/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_lhs.dart index 86b756ec956..40d5be28f08 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_lhs.dart +++ b/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_lhs.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case 1! & 2: diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_rhs.dart b/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_rhs.dart index ff84f4eedaa..5569d5d9267 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_rhs.dart +++ b/pkg/front_end/testcases/patterns/null_assert_inside_logical_and_rhs.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case 1 & 2!: diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_lhs.dart b/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_lhs.dart index e97cea30dc6..c747c771a2f 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_lhs.dart +++ b/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_lhs.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case 1! | 2: diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_rhs.dart b/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_rhs.dart index 75511fe48bf..a4f437ebbf7 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_rhs.dart +++ b/pkg/front_end/testcases/patterns/null_assert_inside_logical_or_rhs.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case 1 | 2!: diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_map_pattern.dart b/pkg/front_end/testcases/patterns/null_assert_inside_map_pattern.dart index 5988a1d6b67..a1247079aff 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_map_pattern.dart +++ b/pkg/front_end/testcases/patterns/null_assert_inside_map_pattern.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case {'a': 1!}: diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_parenthesized_pattern.dart b/pkg/front_end/testcases/patterns/null_assert_inside_parenthesized_pattern.dart index b9a3f9fe175..8d76a0d5200 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_parenthesized_pattern.dart +++ b/pkg/front_end/testcases/patterns/null_assert_inside_parenthesized_pattern.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case (1!): diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_record_pattern_implicitly_named.dart b/pkg/front_end/testcases/patterns/null_assert_inside_record_pattern_implicitly_named.dart index eb346ba3391..c4f02db0764 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_record_pattern_implicitly_named.dart +++ b/pkg/front_end/testcases/patterns/null_assert_inside_record_pattern_implicitly_named.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case (: var n!, 2): diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_record_pattern_named.dart b/pkg/front_end/testcases/patterns/null_assert_inside_record_pattern_named.dart index ec784396ec9..beb931a651e 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_record_pattern_named.dart +++ b/pkg/front_end/testcases/patterns/null_assert_inside_record_pattern_named.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case (n: 1!, 2): diff --git a/pkg/front_end/testcases/patterns/null_assert_inside_record_pattern_unnamed.dart b/pkg/front_end/testcases/patterns/null_assert_inside_record_pattern_unnamed.dart index c9c86bd8b80..2fb576a9177 100644 --- a/pkg/front_end/testcases/patterns/null_assert_inside_record_pattern_unnamed.dart +++ b/pkg/front_end/testcases/patterns/null_assert_inside_record_pattern_unnamed.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case (1!, 2): diff --git a/pkg/front_end/testcases/patterns/null_check_inside_case.dart b/pkg/front_end/testcases/patterns/null_check_inside_case.dart index 642f1e74664..ed492088d1a 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_case.dart +++ b/pkg/front_end/testcases/patterns/null_check_inside_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { const y = 1; switch (x) { diff --git a/pkg/front_end/testcases/patterns/null_check_inside_extractor_pattern.dart b/pkg/front_end/testcases/patterns/null_check_inside_extractor_pattern.dart index a0d4ce1273a..be964cd46c0 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_extractor_pattern.dart +++ b/pkg/front_end/testcases/patterns/null_check_inside_extractor_pattern.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + class C { int? f; } diff --git a/pkg/front_end/testcases/patterns/null_check_inside_extractor_pattern_implicitly_named.dart b/pkg/front_end/testcases/patterns/null_check_inside_extractor_pattern_implicitly_named.dart index 982edaa53b9..89b0ee220b5 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_extractor_pattern_implicitly_named.dart +++ b/pkg/front_end/testcases/patterns/null_check_inside_extractor_pattern_implicitly_named.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + class C { int? f; } diff --git a/pkg/front_end/testcases/patterns/null_check_inside_if_case.dart b/pkg/front_end/testcases/patterns/null_check_inside_if_case.dart index 8112c8969f7..27230d16a79 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_if_case.dart +++ b/pkg/front_end/testcases/patterns/null_check_inside_if_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { if (x case var y?) {} } diff --git a/pkg/front_end/testcases/patterns/null_check_inside_list_pattern.dart b/pkg/front_end/testcases/patterns/null_check_inside_list_pattern.dart index 3b9734133e0..5dc635587b2 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_list_pattern.dart +++ b/pkg/front_end/testcases/patterns/null_check_inside_list_pattern.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case [1?]: diff --git a/pkg/front_end/testcases/patterns/null_check_inside_logical_and_lhs.dart b/pkg/front_end/testcases/patterns/null_check_inside_logical_and_lhs.dart index 1b2721d1528..ae28b0b08d9 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_logical_and_lhs.dart +++ b/pkg/front_end/testcases/patterns/null_check_inside_logical_and_lhs.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case 1? & 2: diff --git a/pkg/front_end/testcases/patterns/null_check_inside_logical_and_rhs.dart b/pkg/front_end/testcases/patterns/null_check_inside_logical_and_rhs.dart index 519e4763e96..0dc01dab40f 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_logical_and_rhs.dart +++ b/pkg/front_end/testcases/patterns/null_check_inside_logical_and_rhs.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case 1 & 2?: diff --git a/pkg/front_end/testcases/patterns/null_check_inside_logical_or_lhs.dart b/pkg/front_end/testcases/patterns/null_check_inside_logical_or_lhs.dart index 307ba8063e6..70db7638f9e 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_logical_or_lhs.dart +++ b/pkg/front_end/testcases/patterns/null_check_inside_logical_or_lhs.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case 1? | 2: diff --git a/pkg/front_end/testcases/patterns/null_check_inside_logical_or_rhs.dart b/pkg/front_end/testcases/patterns/null_check_inside_logical_or_rhs.dart index 81f3894c43e..be2e0ab204f 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_logical_or_rhs.dart +++ b/pkg/front_end/testcases/patterns/null_check_inside_logical_or_rhs.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case 1 | 2?: diff --git a/pkg/front_end/testcases/patterns/null_check_inside_map_pattern.dart b/pkg/front_end/testcases/patterns/null_check_inside_map_pattern.dart index d23631cdd11..8b546b68663 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_map_pattern.dart +++ b/pkg/front_end/testcases/patterns/null_check_inside_map_pattern.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case {'a': 1?}: diff --git a/pkg/front_end/testcases/patterns/null_check_inside_parenthesized_pattern.dart b/pkg/front_end/testcases/patterns/null_check_inside_parenthesized_pattern.dart index edd38435ced..628830b9103 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_parenthesized_pattern.dart +++ b/pkg/front_end/testcases/patterns/null_check_inside_parenthesized_pattern.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case (1?): diff --git a/pkg/front_end/testcases/patterns/null_check_inside_record_pattern_implicitly_named.dart b/pkg/front_end/testcases/patterns/null_check_inside_record_pattern_implicitly_named.dart index 902a14a77d8..ecaa842123c 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_record_pattern_implicitly_named.dart +++ b/pkg/front_end/testcases/patterns/null_check_inside_record_pattern_implicitly_named.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case (: var n?, 2): diff --git a/pkg/front_end/testcases/patterns/null_check_inside_record_pattern_named.dart b/pkg/front_end/testcases/patterns/null_check_inside_record_pattern_named.dart index cf7275bfbe7..5a50eac3d70 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_record_pattern_named.dart +++ b/pkg/front_end/testcases/patterns/null_check_inside_record_pattern_named.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case (n: 1?, 2): diff --git a/pkg/front_end/testcases/patterns/null_check_inside_record_pattern_unnamed.dart b/pkg/front_end/testcases/patterns/null_check_inside_record_pattern_unnamed.dart index d91df549fe4..f47158b55b5 100644 --- a/pkg/front_end/testcases/patterns/null_check_inside_record_pattern_unnamed.dart +++ b/pkg/front_end/testcases/patterns/null_check_inside_record_pattern_unnamed.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case (1?, 2): diff --git a/pkg/front_end/testcases/patterns/null_literal_inside_case.dart b/pkg/front_end/testcases/patterns/null_literal_inside_case.dart index 2b9c2940d2e..c61dbcdf69c 100644 --- a/pkg/front_end/testcases/patterns/null_literal_inside_case.dart +++ b/pkg/front_end/testcases/patterns/null_literal_inside_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case null: diff --git a/pkg/front_end/testcases/patterns/null_literal_inside_cast.dart b/pkg/front_end/testcases/patterns/null_literal_inside_cast.dart index 33ac6393be1..f1dd26ceedb 100644 --- a/pkg/front_end/testcases/patterns/null_literal_inside_cast.dart +++ b/pkg/front_end/testcases/patterns/null_literal_inside_cast.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case null as Object: diff --git a/pkg/front_end/testcases/patterns/null_literal_inside_if_case.dart b/pkg/front_end/testcases/patterns/null_literal_inside_if_case.dart index 7129f396e91..5676de2eaa9 100644 --- a/pkg/front_end/testcases/patterns/null_literal_inside_if_case.dart +++ b/pkg/front_end/testcases/patterns/null_literal_inside_if_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { if (x case null) {} } diff --git a/pkg/front_end/testcases/patterns/null_literal_inside_null_assert.dart b/pkg/front_end/testcases/patterns/null_literal_inside_null_assert.dart index 0c1701afa66..719dfcad920 100644 --- a/pkg/front_end/testcases/patterns/null_literal_inside_null_assert.dart +++ b/pkg/front_end/testcases/patterns/null_literal_inside_null_assert.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case null!: diff --git a/pkg/front_end/testcases/patterns/null_literal_inside_null_check.dart b/pkg/front_end/testcases/patterns/null_literal_inside_null_check.dart index 3e27a6a5419..b961830744f 100644 --- a/pkg/front_end/testcases/patterns/null_literal_inside_null_check.dart +++ b/pkg/front_end/testcases/patterns/null_literal_inside_null_check.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case null?: diff --git a/pkg/front_end/testcases/patterns/parenthesized_pattern_inside_cast.dart b/pkg/front_end/testcases/patterns/parenthesized_pattern_inside_cast.dart index 560fd364c6d..31cad02c41f 100644 --- a/pkg/front_end/testcases/patterns/parenthesized_pattern_inside_cast.dart +++ b/pkg/front_end/testcases/patterns/parenthesized_pattern_inside_cast.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case (1) as Object: diff --git a/pkg/front_end/testcases/patterns/parenthesized_pattern_inside_null_assert.dart b/pkg/front_end/testcases/patterns/parenthesized_pattern_inside_null_assert.dart index 343b0c78a29..bc05e661e5d 100644 --- a/pkg/front_end/testcases/patterns/parenthesized_pattern_inside_null_assert.dart +++ b/pkg/front_end/testcases/patterns/parenthesized_pattern_inside_null_assert.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case (1)!: diff --git a/pkg/front_end/testcases/patterns/parenthesized_pattern_inside_null_check.dart b/pkg/front_end/testcases/patterns/parenthesized_pattern_inside_null_check.dart index 092ffae7729..5607949f193 100644 --- a/pkg/front_end/testcases/patterns/parenthesized_pattern_inside_null_check.dart +++ b/pkg/front_end/testcases/patterns/parenthesized_pattern_inside_null_check.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case (1)?: diff --git a/pkg/front_end/testcases/patterns/prefixed_extractor_pattern_with_type_args.dart b/pkg/front_end/testcases/patterns/prefixed_extractor_pattern_with_type_args.dart index e3e1be76e5a..9502d841422 100644 --- a/pkg/front_end/testcases/patterns/prefixed_extractor_pattern_with_type_args.dart +++ b/pkg/front_end/testcases/patterns/prefixed_extractor_pattern_with_type_args.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + import 'dart:async' as async; test(dynamic x) { diff --git a/pkg/front_end/testcases/patterns/prefixed_extractor_pattern_with_type_args_inside_cast.dart b/pkg/front_end/testcases/patterns/prefixed_extractor_pattern_with_type_args_inside_cast.dart index a2b5b015275..a844a178463 100644 --- a/pkg/front_end/testcases/patterns/prefixed_extractor_pattern_with_type_args_inside_cast.dart +++ b/pkg/front_end/testcases/patterns/prefixed_extractor_pattern_with_type_args_inside_cast.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + import 'dart:async' as async; test(dynamic x) { diff --git a/pkg/front_end/testcases/patterns/prefixed_extractor_pattern_with_type_args_inside_null_assert.dart b/pkg/front_end/testcases/patterns/prefixed_extractor_pattern_with_type_args_inside_null_assert.dart index 32ff7d62d4f..d08704d0012 100644 --- a/pkg/front_end/testcases/patterns/prefixed_extractor_pattern_with_type_args_inside_null_assert.dart +++ b/pkg/front_end/testcases/patterns/prefixed_extractor_pattern_with_type_args_inside_null_assert.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + import 'dart:async' as async; test(dynamic x) { diff --git a/pkg/front_end/testcases/patterns/prefixed_extractor_pattern_with_type_args_inside_null_check.dart b/pkg/front_end/testcases/patterns/prefixed_extractor_pattern_with_type_args_inside_null_check.dart index bac5f392ab5..43a87f1306d 100644 --- a/pkg/front_end/testcases/patterns/prefixed_extractor_pattern_with_type_args_inside_null_check.dart +++ b/pkg/front_end/testcases/patterns/prefixed_extractor_pattern_with_type_args_inside_null_check.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + import 'dart:async' as async; test(dynamic x) { diff --git a/pkg/front_end/testcases/patterns/record_pattern_inside_case.dart b/pkg/front_end/testcases/patterns/record_pattern_inside_case.dart index 8e47fb876da..cdba1fdcdc3 100644 --- a/pkg/front_end/testcases/patterns/record_pattern_inside_case.dart +++ b/pkg/front_end/testcases/patterns/record_pattern_inside_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case (1, 2): diff --git a/pkg/front_end/testcases/patterns/record_pattern_inside_case_empty.dart b/pkg/front_end/testcases/patterns/record_pattern_inside_case_empty.dart index 21999ff394a..175bfa28786 100644 --- a/pkg/front_end/testcases/patterns/record_pattern_inside_case_empty.dart +++ b/pkg/front_end/testcases/patterns/record_pattern_inside_case_empty.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case (): diff --git a/pkg/front_end/testcases/patterns/record_pattern_inside_case_singleton.dart b/pkg/front_end/testcases/patterns/record_pattern_inside_case_singleton.dart index f3332644e64..35cb32ca632 100644 --- a/pkg/front_end/testcases/patterns/record_pattern_inside_case_singleton.dart +++ b/pkg/front_end/testcases/patterns/record_pattern_inside_case_singleton.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case (1,): diff --git a/pkg/front_end/testcases/patterns/record_pattern_inside_cast.dart b/pkg/front_end/testcases/patterns/record_pattern_inside_cast.dart index bc972a3c782..b4db15d941e 100644 --- a/pkg/front_end/testcases/patterns/record_pattern_inside_cast.dart +++ b/pkg/front_end/testcases/patterns/record_pattern_inside_cast.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case (1, 2) as Object: diff --git a/pkg/front_end/testcases/patterns/record_pattern_inside_if_case.dart b/pkg/front_end/testcases/patterns/record_pattern_inside_if_case.dart index 4cdf62f5ceb..adc6eea6774 100644 --- a/pkg/front_end/testcases/patterns/record_pattern_inside_if_case.dart +++ b/pkg/front_end/testcases/patterns/record_pattern_inside_if_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { if (x case (1, 2)) {} if (x case (1, a: 2)) {} diff --git a/pkg/front_end/testcases/patterns/record_pattern_inside_null_assert.dart b/pkg/front_end/testcases/patterns/record_pattern_inside_null_assert.dart index e38fe125ad0..807ac4b5876 100644 --- a/pkg/front_end/testcases/patterns/record_pattern_inside_null_assert.dart +++ b/pkg/front_end/testcases/patterns/record_pattern_inside_null_assert.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case (1, 2)!: diff --git a/pkg/front_end/testcases/patterns/record_pattern_inside_null_check.dart b/pkg/front_end/testcases/patterns/record_pattern_inside_null_check.dart index 19e41f87440..779089dcb22 100644 --- a/pkg/front_end/testcases/patterns/record_pattern_inside_null_check.dart +++ b/pkg/front_end/testcases/patterns/record_pattern_inside_null_check.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case (1, 2)?: diff --git a/pkg/front_end/testcases/patterns/relational_inside_case_equal.dart b/pkg/front_end/testcases/patterns/relational_inside_case_equal.dart index 42b228a92d9..680a10b6919 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_case_equal.dart +++ b/pkg/front_end/testcases/patterns/relational_inside_case_equal.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case == 1 << 1: diff --git a/pkg/front_end/testcases/patterns/relational_inside_case_greater_than.dart b/pkg/front_end/testcases/patterns/relational_inside_case_greater_than.dart index 694d98ae1e5..3d24c9bb7b3 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_case_greater_than.dart +++ b/pkg/front_end/testcases/patterns/relational_inside_case_greater_than.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case > 1 << 1: diff --git a/pkg/front_end/testcases/patterns/relational_inside_case_greater_than_or_equal.dart b/pkg/front_end/testcases/patterns/relational_inside_case_greater_than_or_equal.dart index 7b14a3baf89..a037df35279 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_case_greater_than_or_equal.dart +++ b/pkg/front_end/testcases/patterns/relational_inside_case_greater_than_or_equal.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case >= 1 << 1: diff --git a/pkg/front_end/testcases/patterns/relational_inside_case_less_than.dart b/pkg/front_end/testcases/patterns/relational_inside_case_less_than.dart index e07efbfda9d..ebe77192064 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_case_less_than.dart +++ b/pkg/front_end/testcases/patterns/relational_inside_case_less_than.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case < 1 << 1: diff --git a/pkg/front_end/testcases/patterns/relational_inside_case_less_than_or_equal.dart b/pkg/front_end/testcases/patterns/relational_inside_case_less_than_or_equal.dart index 0ae950c1e8c..254032a543e 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_case_less_than_or_equal.dart +++ b/pkg/front_end/testcases/patterns/relational_inside_case_less_than_or_equal.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case <= 1 << 1: diff --git a/pkg/front_end/testcases/patterns/relational_inside_case_not_equal.dart b/pkg/front_end/testcases/patterns/relational_inside_case_not_equal.dart index 2de3a3b04b3..edf7d1eaab3 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_case_not_equal.dart +++ b/pkg/front_end/testcases/patterns/relational_inside_case_not_equal.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case != 1 << 1: diff --git a/pkg/front_end/testcases/patterns/relational_inside_extractor_pattern.dart b/pkg/front_end/testcases/patterns/relational_inside_extractor_pattern.dart index 9331783c8de..53ce7ab8455 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_extractor_pattern.dart +++ b/pkg/front_end/testcases/patterns/relational_inside_extractor_pattern.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + class C { int? f; } diff --git a/pkg/front_end/testcases/patterns/relational_inside_list_pattern.dart b/pkg/front_end/testcases/patterns/relational_inside_list_pattern.dart index 4a1a1209144..cf5dbc66f2c 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_list_pattern.dart +++ b/pkg/front_end/testcases/patterns/relational_inside_list_pattern.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case [== 1]: diff --git a/pkg/front_end/testcases/patterns/relational_inside_logical_and_lhs.dart b/pkg/front_end/testcases/patterns/relational_inside_logical_and_lhs.dart index fd98413bfcd..3ad2c4cc161 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_logical_and_lhs.dart +++ b/pkg/front_end/testcases/patterns/relational_inside_logical_and_lhs.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case == 1 & 2: diff --git a/pkg/front_end/testcases/patterns/relational_inside_logical_and_rhs.dart b/pkg/front_end/testcases/patterns/relational_inside_logical_and_rhs.dart index f94c2daaf29..34957e5c2e4 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_logical_and_rhs.dart +++ b/pkg/front_end/testcases/patterns/relational_inside_logical_and_rhs.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case 1 & == 2: diff --git a/pkg/front_end/testcases/patterns/relational_inside_logical_or_lhs.dart b/pkg/front_end/testcases/patterns/relational_inside_logical_or_lhs.dart index 7c0299e0a7f..0a553bb5ce5 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_logical_or_lhs.dart +++ b/pkg/front_end/testcases/patterns/relational_inside_logical_or_lhs.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case == 1 | 2: diff --git a/pkg/front_end/testcases/patterns/relational_inside_logical_or_rhs.dart b/pkg/front_end/testcases/patterns/relational_inside_logical_or_rhs.dart index 72ede7b65e6..02844650b7b 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_logical_or_rhs.dart +++ b/pkg/front_end/testcases/patterns/relational_inside_logical_or_rhs.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case 1 | == 2: diff --git a/pkg/front_end/testcases/patterns/relational_inside_map_pattern.dart b/pkg/front_end/testcases/patterns/relational_inside_map_pattern.dart index dfdfdfcb5f6..96f43f361f5 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_map_pattern.dart +++ b/pkg/front_end/testcases/patterns/relational_inside_map_pattern.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case {'a': == 1}: diff --git a/pkg/front_end/testcases/patterns/relational_inside_parenthesized_pattern.dart b/pkg/front_end/testcases/patterns/relational_inside_parenthesized_pattern.dart index 236ce5be7eb..4175292003a 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_parenthesized_pattern.dart +++ b/pkg/front_end/testcases/patterns/relational_inside_parenthesized_pattern.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case (== 1): diff --git a/pkg/front_end/testcases/patterns/relational_inside_record_pattern_named.dart b/pkg/front_end/testcases/patterns/relational_inside_record_pattern_named.dart index 18b00a39c55..ffaa1aacbfb 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_record_pattern_named.dart +++ b/pkg/front_end/testcases/patterns/relational_inside_record_pattern_named.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case (n: == 1, 2): diff --git a/pkg/front_end/testcases/patterns/relational_inside_record_pattern_unnamed.dart b/pkg/front_end/testcases/patterns/relational_inside_record_pattern_unnamed.dart index 3a9fce38297..5c299f13573 100644 --- a/pkg/front_end/testcases/patterns/relational_inside_record_pattern_unnamed.dart +++ b/pkg/front_end/testcases/patterns/relational_inside_record_pattern_unnamed.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case (== 1, 2): diff --git a/pkg/front_end/testcases/patterns/string_literal_inside_case.dart b/pkg/front_end/testcases/patterns/string_literal_inside_case.dart index 5b727231185..821a8b2bb55 100644 --- a/pkg/front_end/testcases/patterns/string_literal_inside_case.dart +++ b/pkg/front_end/testcases/patterns/string_literal_inside_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case "x": diff --git a/pkg/front_end/testcases/patterns/string_literal_inside_cast.dart b/pkg/front_end/testcases/patterns/string_literal_inside_cast.dart index 4a0772b38de..9194c2ca7e8 100644 --- a/pkg/front_end/testcases/patterns/string_literal_inside_cast.dart +++ b/pkg/front_end/testcases/patterns/string_literal_inside_cast.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case "x" as Object: diff --git a/pkg/front_end/testcases/patterns/string_literal_inside_if_case.dart b/pkg/front_end/testcases/patterns/string_literal_inside_if_case.dart index d942735b61c..84281713fb9 100644 --- a/pkg/front_end/testcases/patterns/string_literal_inside_if_case.dart +++ b/pkg/front_end/testcases/patterns/string_literal_inside_if_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { if (x case "x") {} } diff --git a/pkg/front_end/testcases/patterns/string_literal_inside_null_assert.dart b/pkg/front_end/testcases/patterns/string_literal_inside_null_assert.dart index 02484b9acf8..c7e5f152e3d 100644 --- a/pkg/front_end/testcases/patterns/string_literal_inside_null_assert.dart +++ b/pkg/front_end/testcases/patterns/string_literal_inside_null_assert.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case "x"!: diff --git a/pkg/front_end/testcases/patterns/string_literal_inside_null_check.dart b/pkg/front_end/testcases/patterns/string_literal_inside_null_check.dart index afc0b4aafd7..8c9d03336d0 100644 --- a/pkg/front_end/testcases/patterns/string_literal_inside_null_check.dart +++ b/pkg/front_end/testcases/patterns/string_literal_inside_null_check.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case "x"?: diff --git a/pkg/front_end/testcases/patterns/typed_final_variable_inside_case.dart b/pkg/front_end/testcases/patterns/typed_final_variable_inside_case.dart index 69263dc52f9..237edec8c48 100644 --- a/pkg/front_end/testcases/patterns/typed_final_variable_inside_case.dart +++ b/pkg/front_end/testcases/patterns/typed_final_variable_inside_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case final int y: diff --git a/pkg/front_end/testcases/patterns/typed_final_variable_inside_cast.dart b/pkg/front_end/testcases/patterns/typed_final_variable_inside_cast.dart index 55eff0422e9..66b2f0a28c8 100644 --- a/pkg/front_end/testcases/patterns/typed_final_variable_inside_cast.dart +++ b/pkg/front_end/testcases/patterns/typed_final_variable_inside_cast.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case final int y as Object: diff --git a/pkg/front_end/testcases/patterns/typed_final_variable_inside_if_case.dart b/pkg/front_end/testcases/patterns/typed_final_variable_inside_if_case.dart index 23a7be5db83..0388ca84e7f 100644 --- a/pkg/front_end/testcases/patterns/typed_final_variable_inside_if_case.dart +++ b/pkg/front_end/testcases/patterns/typed_final_variable_inside_if_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { if (x case final int y) {} } diff --git a/pkg/front_end/testcases/patterns/typed_final_variable_inside_null_assert.dart b/pkg/front_end/testcases/patterns/typed_final_variable_inside_null_assert.dart index 60bc23fbb94..4237d6aa1eb 100644 --- a/pkg/front_end/testcases/patterns/typed_final_variable_inside_null_assert.dart +++ b/pkg/front_end/testcases/patterns/typed_final_variable_inside_null_assert.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case final int y!: diff --git a/pkg/front_end/testcases/patterns/typed_final_variable_inside_null_check.dart b/pkg/front_end/testcases/patterns/typed_final_variable_inside_null_check.dart index 0c353b02d52..26b452fcdd7 100644 --- a/pkg/front_end/testcases/patterns/typed_final_variable_inside_null_check.dart +++ b/pkg/front_end/testcases/patterns/typed_final_variable_inside_null_check.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case final int y?: diff --git a/pkg/front_end/testcases/patterns/typed_variable_inside_case.dart b/pkg/front_end/testcases/patterns/typed_variable_inside_case.dart index 0467e3a084a..d28db61db78 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_inside_case.dart +++ b/pkg/front_end/testcases/patterns/typed_variable_inside_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case int y: diff --git a/pkg/front_end/testcases/patterns/typed_variable_inside_cast.dart b/pkg/front_end/testcases/patterns/typed_variable_inside_cast.dart index d7014fbd908..9c0ec4f1e62 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_inside_cast.dart +++ b/pkg/front_end/testcases/patterns/typed_variable_inside_cast.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case int y as Object: diff --git a/pkg/front_end/testcases/patterns/typed_variable_inside_if_case.dart b/pkg/front_end/testcases/patterns/typed_variable_inside_if_case.dart index d196b022173..b6356689dcb 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_inside_if_case.dart +++ b/pkg/front_end/testcases/patterns/typed_variable_inside_if_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { if (x case int y) {} } diff --git a/pkg/front_end/testcases/patterns/typed_variable_inside_null_assert.dart b/pkg/front_end/testcases/patterns/typed_variable_inside_null_assert.dart index 15f6ee15c7b..dffe4dfea67 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_inside_null_assert.dart +++ b/pkg/front_end/testcases/patterns/typed_variable_inside_null_assert.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case int y!: diff --git a/pkg/front_end/testcases/patterns/typed_variable_inside_null_check.dart b/pkg/front_end/testcases/patterns/typed_variable_inside_null_check.dart index b5d73c0d963..4240aedfd06 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_inside_null_check.dart +++ b/pkg/front_end/testcases/patterns/typed_variable_inside_null_check.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case int y?: diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_case.dart b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_case.dart index 1ed75c0a1d2..52a7f367b5c 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_case.dart +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case int as: diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_cast.dart b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_cast.dart index 7ad75b04275..0ce40033d07 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_cast.dart +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_cast.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case int as as Object: diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_extractor_pattern.dart b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_extractor_pattern.dart index 019892f64b6..27888898d83 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_extractor_pattern.dart +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_extractor_pattern.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + class C { int? f; } diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_extractor_pattern_implicitly_named.dart b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_extractor_pattern_implicitly_named.dart index c3b174572e6..7126fdb471f 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_extractor_pattern_implicitly_named.dart +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_extractor_pattern_implicitly_named.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + class C { int? f; } diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_if_case.dart b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_if_case.dart index 48bef7bfaaf..c2529c18e46 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_if_case.dart +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_if_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { if (x case int as) {} } diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_list_pattern.dart b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_list_pattern.dart index e0c81052a7d..121ff6b69f1 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_list_pattern.dart +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_list_pattern.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case [int as]: diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_lhs.dart b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_lhs.dart index 1db90f3f8ae..97207a3f6df 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_lhs.dart +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_lhs.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case int as & 2: diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_rhs.dart b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_rhs.dart index af77ec088d0..0f0f858c1f4 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_rhs.dart +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_and_rhs.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case 1 & int as: diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_lhs.dart b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_lhs.dart index 7252f50f259..591f9df3075 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_lhs.dart +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_lhs.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case int as | 2: diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_rhs.dart b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_rhs.dart index 1299dfe4dff..ccb74b51cca 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_rhs.dart +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_logical_or_rhs.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case 1 | int as: diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_map_pattern.dart b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_map_pattern.dart index 8d20335ee31..e978b7f51c2 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_map_pattern.dart +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_map_pattern.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case {'a': int as}: diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_null_assert.dart b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_null_assert.dart index 0ae62db572a..ddaee95869a 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_null_assert.dart +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_null_assert.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case int as!: diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_null_check.dart b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_null_check.dart index 07f6b72fdcc..ebe1a52ad26 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_null_check.dart +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_null_check.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case int as?: diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_parenthesized_pattern.dart b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_parenthesized_pattern.dart index e4f6eeb8f1a..1b53187baff 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_parenthesized_pattern.dart +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_parenthesized_pattern.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case (int as): diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_record_pattern_implicitly_named.dart b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_record_pattern_implicitly_named.dart index b1b1106000d..1370cec5539 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_record_pattern_implicitly_named.dart +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_record_pattern_implicitly_named.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case (: int as, 2): diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_record_pattern_named.dart b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_record_pattern_named.dart index c1e202e9e1c..3c2310dcb08 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_record_pattern_named.dart +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_record_pattern_named.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case (n: int as, 2): diff --git a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_record_pattern_unnamed.dart b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_record_pattern_unnamed.dart index 656b439a34e..3e2f6c4a9c3 100644 --- a/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_record_pattern_unnamed.dart +++ b/pkg/front_end/testcases/patterns/typed_variable_named_as_inside_record_pattern_unnamed.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case (int as, 2): diff --git a/pkg/front_end/testcases/patterns/var_variable_inside_case.dart b/pkg/front_end/testcases/patterns/var_variable_inside_case.dart index 0e106d8a406..1d08b2381c8 100644 --- a/pkg/front_end/testcases/patterns/var_variable_inside_case.dart +++ b/pkg/front_end/testcases/patterns/var_variable_inside_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case var y: diff --git a/pkg/front_end/testcases/patterns/var_variable_inside_cast.dart b/pkg/front_end/testcases/patterns/var_variable_inside_cast.dart index 78d4369647a..dc3bcc83d95 100644 --- a/pkg/front_end/testcases/patterns/var_variable_inside_cast.dart +++ b/pkg/front_end/testcases/patterns/var_variable_inside_cast.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case var y as Object: diff --git a/pkg/front_end/testcases/patterns/var_variable_inside_if_case.dart b/pkg/front_end/testcases/patterns/var_variable_inside_if_case.dart index 90e1b5a51f9..fed4517c3a3 100644 --- a/pkg/front_end/testcases/patterns/var_variable_inside_if_case.dart +++ b/pkg/front_end/testcases/patterns/var_variable_inside_if_case.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { if (x case var y) {} } diff --git a/pkg/front_end/testcases/patterns/var_variable_inside_null_assert.dart b/pkg/front_end/testcases/patterns/var_variable_inside_null_assert.dart index bd9e6563127..bda41e4b15a 100644 --- a/pkg/front_end/testcases/patterns/var_variable_inside_null_assert.dart +++ b/pkg/front_end/testcases/patterns/var_variable_inside_null_assert.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case var y!: diff --git a/pkg/front_end/testcases/patterns/var_variable_inside_null_check.dart b/pkg/front_end/testcases/patterns/var_variable_inside_null_check.dart index 719c79e20ec..6b573c0744f 100644 --- a/pkg/front_end/testcases/patterns/var_variable_inside_null_check.dart +++ b/pkg/front_end/testcases/patterns/var_variable_inside_null_check.dart @@ -1,3 +1,7 @@ +// Copyright (c) 2022, 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. + test(dynamic x) { switch (x) { case var y?: