-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
12 changed files
with
204 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
LanguageFeatures/Parts-with-imports/terminology_A01_t01.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
/// @assertion It’s a compile-time error if a Dart file has two `part` | ||
/// directives with the same URI, so each included part file is included exactly | ||
/// once. | ||
/// | ||
/// @description Check that it is a compile-time error if a Dart file has two | ||
/// `part` directives with the same URI. | ||
/// @author [email protected] | ||
// SharedOptions=--enable-experiment=enhanced-parts | ||
|
||
part 'terminology_A01_t01_part1.dart'; | ||
|
||
main() { | ||
} |
21 changes: 21 additions & 0 deletions
21
LanguageFeatures/Parts-with-imports/terminology_A01_t01_part1.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
/// @assertion It’s a compile-time error if a Dart file has two `part` | ||
/// directives with the same URI, so each included part file is included exactly | ||
/// once. | ||
/// | ||
/// @description Check that it is a compile-time error if a Dart file has two | ||
/// `part` directives with the same URI. | ||
/// @author [email protected] | ||
// SharedOptions=--enable-experiment=enhanced-parts | ||
|
||
part of 'terminology_A01_t01.dart'; | ||
|
||
part 'terminology_A01_t01_part2.dart'; | ||
part 'terminology_A01_t01_part2.dart'; | ||
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
// [analyzer] unspecified | ||
// [cfe] unspecified |
15 changes: 15 additions & 0 deletions
15
LanguageFeatures/Parts-with-imports/terminology_A01_t01_part2.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
/// @assertion It’s a compile-time error if a Dart file has two `part` | ||
/// directives with the same URI, so each included part file is included exactly | ||
/// once. | ||
/// | ||
/// @description Check that it is a compile-time error if a Dart file has two | ||
/// `part` directives with the same URI. | ||
/// @author [email protected] | ||
// SharedOptions=--enable-experiment=enhanced-parts | ||
|
||
part of 'terminology_A01_t01_part1.dart'; |
17 changes: 17 additions & 0 deletions
17
LanguageFeatures/Parts-with-imports/terminology_A02_t01.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
/// @assertion It’s a compile-time error if a `part` directive denotes a file | ||
/// which is not a part file. | ||
/// | ||
/// @description Check that it is a compile-time error if a `part` directive | ||
/// denotes a file which is not a part file. | ||
/// @author [email protected] | ||
// SharedOptions=--enable-experiment=enhanced-parts | ||
|
||
part 'terminology_A02_t01_part1.dart'; | ||
|
||
main() { | ||
} |
19 changes: 19 additions & 0 deletions
19
LanguageFeatures/Parts-with-imports/terminology_A02_t01_part1.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
/// @assertion It’s a compile-time error if a `part` directive denotes a file | ||
/// which is not a part file. | ||
/// | ||
/// @description Check that it is a compile-time error if a `part` directive | ||
/// denotes a file which is not a part file. | ||
/// @author [email protected] | ||
// SharedOptions=--enable-experiment=enhanced-parts | ||
|
||
part of 'terminology_A02_t01.dart'; | ||
|
||
part 'terminology_A02_t01_part2.dart'; | ||
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
// [analyzer] unspecified | ||
// [cfe] unspecified |
14 changes: 14 additions & 0 deletions
14
LanguageFeatures/Parts-with-imports/terminology_A02_t01_part2.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
/// @assertion It’s a compile-time error if a `part` directive denotes a file | ||
/// which is not a part file. | ||
/// | ||
/// @description Check that it is a compile-time error if a `part` directive | ||
/// denotes a file which is not a part file. | ||
/// @author [email protected] | ||
// SharedOptions=--enable-experiment=enhanced-parts | ||
|
||
String foo = "foo"; |
17 changes: 17 additions & 0 deletions
17
LanguageFeatures/Parts-with-imports/terminology_A03_t01.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
/// @assertion It’s a compile-time error if a part file is included by any Dart | ||
/// file other than the part file’s parent file. | ||
/// | ||
/// @description Check that it is a compile-time error if a `part` directive | ||
/// denotes a file which is not a part file. | ||
/// @author [email protected] | ||
// SharedOptions=--enable-experiment=enhanced-parts | ||
|
||
part 'terminology_A03_t01_part1.dart'; | ||
|
||
main() { | ||
} |
19 changes: 19 additions & 0 deletions
19
LanguageFeatures/Parts-with-imports/terminology_A03_t01_part1.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
/// @assertion It’s a compile-time error if a `part` directive denotes a file | ||
/// which is not a part file. | ||
/// | ||
/// @description Check that it is a compile-time error if a `part` directive | ||
/// denotes a file which is not a part file. | ||
/// @author [email protected] | ||
// SharedOptions=--enable-experiment=enhanced-parts | ||
|
||
part of 'terminology_A03_t01.dart'; | ||
|
||
part 'terminology_A03_t01_part2.dart'; | ||
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
// [analyzer] unspecified | ||
// [cfe] unspecified |
14 changes: 14 additions & 0 deletions
14
LanguageFeatures/Parts-with-imports/terminology_A03_t01_part2.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
/// @assertion It’s a compile-time error if a `part` directive denotes a file | ||
/// which is not a part file. | ||
/// | ||
/// @description Check that it is a compile-time error if a `part` directive | ||
/// denotes a file which is not a part file. | ||
/// @author [email protected] | ||
// SharedOptions=--enable-experiment=enhanced-parts | ||
|
||
String foo = "foo"; |
16 changes: 16 additions & 0 deletions
16
LanguageFeatures/Parts-with-imports/terminology_A04_t01.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
/// @assertion It’s a compile-time error if a part file is a sub-part of itself. | ||
/// | ||
/// @description Check that it is a compile-time error if a part file is a | ||
/// sub-part of itself. | ||
/// @author [email protected] | ||
// SharedOptions=--enable-experiment=enhanced-parts | ||
|
||
part 'terminology_A04_t01_part1.dart'; | ||
|
||
main() { | ||
} |
15 changes: 15 additions & 0 deletions
15
LanguageFeatures/Parts-with-imports/terminology_A04_t01_part1.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
/// @assertion It’s a compile-time error if a part file is a sub-part of itself. | ||
/// | ||
/// @description Check that it is a compile-time error if a part file is a | ||
/// sub-part of itself. | ||
/// @author [email protected] | ||
// SharedOptions=--enable-experiment=enhanced-parts | ||
|
||
part of 'terminology_A04_t01.dart'; | ||
|
||
part 'terminology_A04_t01_part2.dart'; |
19 changes: 19 additions & 0 deletions
19
LanguageFeatures/Parts-with-imports/terminology_A04_t01_part2.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
/// @assertion It’s a compile-time error if a `part` directive denotes a file | ||
/// which is not a part file. | ||
/// | ||
/// @description Check that it is a compile-time error if a `part` directive | ||
/// denotes a file which is not a part file. | ||
/// @author [email protected] | ||
// SharedOptions=--enable-experiment=enhanced-parts | ||
|
||
part of 'terminology_A04_t01_part1.dart'; | ||
|
||
part 'terminology_A04_t01.dart'; | ||
// ^^^^^^^^^^^^^^^^^^^^^^^^ | ||
// [analyzer] unspecified | ||
// [cfe] unspecified |