Skip to content

Commit 4ff0b64

Browse files
chloestefantsovaCommit Queue
authored andcommitted
[model] Add missing headers to unit test files in the CFE
Change-Id: I396bbe38dcc4cc65b4758458d6329cf26b31f09d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/431040 Commit-Queue: Chloe Stefantsova <[email protected]> Reviewed-by: Johnni Winther <[email protected]>
1 parent aa65549 commit 4ff0b64

File tree

240 files changed

+1337
-1013
lines changed

Some content is hidden

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

240 files changed

+1337
-1013
lines changed

pkg/front_end/testcases/dart2js/async_lowering/collapse_return_await.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
Future<int> bar() {
26
return Future.value(123);
37
}

pkg/front_end/testcases/dart2js/async_lowering/disabled/basic_return.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
Future<int> foo() async {
26
final c = 3;
37
return c;

pkg/front_end/testcases/enhanced_enums/issue49429.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
class A {
26
const A();
37
const factory A.redir() = A;

pkg/front_end/testcases/enhanced_enums/issue49429.dart.strong.expect

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ constants {
3030

3131
Constructor coverage from constants:
3232
org-dartlang-testcase:///issue49429.dart:
33-
- A. (from org-dartlang-testcase:///issue49429.dart:2:9)
33+
- A. (from org-dartlang-testcase:///issue49429.dart:6:9)
3434
- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart)
35-
- E. (from org-dartlang-testcase:///issue49429.dart:9:9)
35+
- E. (from org-dartlang-testcase:///issue49429.dart:13:9)
3636
- _Enum. (from org-dartlang-sdk:///sdk/lib/core/enum.dart)

pkg/front_end/testcases/enhanced_enums/issue49429.dart.strong.modular.expect

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ constants {
3030

3131
Constructor coverage from constants:
3232
org-dartlang-testcase:///issue49429.dart:
33-
- A. (from org-dartlang-testcase:///issue49429.dart:2:9)
33+
- A. (from org-dartlang-testcase:///issue49429.dart:6:9)
3434
- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart)
35-
- E. (from org-dartlang-testcase:///issue49429.dart:9:9)
35+
- E. (from org-dartlang-testcase:///issue49429.dart:13:9)
3636
- _Enum. (from org-dartlang-sdk:///sdk/lib/core/enum.dart)

pkg/front_end/testcases/enhanced_enums/issue49429.dart.strong.outline.expect

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ static method main() → dynamic
2323

2424

2525
Extra constant evaluation status:
26-
Evaluated: ConstructorInvocation @ org-dartlang-testcase:///issue49429.dart:7:3 -> InstanceConstant(const E{_Enum.index: 0, _Enum._name: "element"})
27-
Evaluated: ListLiteral @ org-dartlang-testcase:///issue49429.dart:6:6 -> ListConstant(const <E>[const E{_Enum.index: 0, _Enum._name: "element"}])
26+
Evaluated: ConstructorInvocation @ org-dartlang-testcase:///issue49429.dart:11:3 -> InstanceConstant(const E{_Enum.index: 0, _Enum._name: "element"})
27+
Evaluated: ListLiteral @ org-dartlang-testcase:///issue49429.dart:10:6 -> ListConstant(const <E>[const E{_Enum.index: 0, _Enum._name: "element"}])
2828
Extra constant evaluation: evaluated: 8, effectively constant: 2

pkg/front_end/testcases/enhanced_enums/issue49429.dart.strong.transformed.expect

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ constants {
3030

3131
Constructor coverage from constants:
3232
org-dartlang-testcase:///issue49429.dart:
33-
- A. (from org-dartlang-testcase:///issue49429.dart:2:9)
33+
- A. (from org-dartlang-testcase:///issue49429.dart:6:9)
3434
- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart)
35-
- E. (from org-dartlang-testcase:///issue49429.dart:9:9)
35+
- E. (from org-dartlang-testcase:///issue49429.dart:13:9)
3636
- _Enum. (from org-dartlang-sdk:///sdk/lib/core/enum.dart)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
var a = () => 'b';a();

pkg/front_end/testcases/general/bug31124.dart.strong.expect

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ library;
22
//
33
// Problems in library:
44
//
5-
// pkg/front_end/testcases/general/bug31124.dart:1:22: Error: Expected a function body or '=>'.
5+
// pkg/front_end/testcases/general/bug31124.dart:5:22: Error: Expected a function body or '=>'.
66
// Try adding {}.
77
// var a = () => 'b';a();
88
// ^
99
//
10-
// pkg/front_end/testcases/general/bug31124.dart:1:19: Error: 'a' is already declared in this scope.
10+
// pkg/front_end/testcases/general/bug31124.dart:5:19: Error: 'a' is already declared in this scope.
1111
// var a = () => 'b';a();
1212
// ^
13-
// pkg/front_end/testcases/general/bug31124.dart:1:5: Context: Previous declaration of 'a'.
13+
// pkg/front_end/testcases/general/bug31124.dart:5:5: Context: Previous declaration of 'a'.
1414
// var a = () => 'b';a();
1515
// ^
1616
//

pkg/front_end/testcases/general/bug31124.dart.strong.modular.expect

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ library;
22
//
33
// Problems in library:
44
//
5-
// pkg/front_end/testcases/general/bug31124.dart:1:22: Error: Expected a function body or '=>'.
5+
// pkg/front_end/testcases/general/bug31124.dart:5:22: Error: Expected a function body or '=>'.
66
// Try adding {}.
77
// var a = () => 'b';a();
88
// ^
99
//
10-
// pkg/front_end/testcases/general/bug31124.dart:1:19: Error: 'a' is already declared in this scope.
10+
// pkg/front_end/testcases/general/bug31124.dart:5:19: Error: 'a' is already declared in this scope.
1111
// var a = () => 'b';a();
1212
// ^
13-
// pkg/front_end/testcases/general/bug31124.dart:1:5: Context: Previous declaration of 'a'.
13+
// pkg/front_end/testcases/general/bug31124.dart:5:5: Context: Previous declaration of 'a'.
1414
// var a = () => 'b';a();
1515
// ^
1616
//

0 commit comments

Comments
 (0)