|
1 |
| -// ignore_for_file: comment_references |
2 |
| -// Note: Should be importing the below libs instead, but we are avoiding imports |
3 |
| -// in this file to speed up analyzer parsing! |
4 |
| -// import 'package:source_gen/source_gen.dart'; |
5 |
| -// import 'test_annotated_classes.dart'; |
| 1 | +/// @docImport 'package:source_gen/source_gen.dart'; |
| 2 | +/// @docImport 'test_annotated_classes.dart'; |
| 3 | +library; |
6 | 4 |
|
7 | 5 | /// Non-public, implementation base class of [ShouldGenerate] and
|
8 | 6 | /// [ShouldThrow].
|
@@ -102,16 +100,16 @@ class ShouldThrow extends TestExpectation {
|
102 | 100 | final String errorMessage;
|
103 | 101 | final String? todo;
|
104 | 102 |
|
105 |
| - /// If `null`, expects [InvalidGenerationSourceError.element] to match the |
| 103 | + /// If `null`, expects [InvalidGenerationSource.element] to match the |
106 | 104 | /// element annotated with [ShouldThrow].
|
107 | 105 | ///
|
108 |
| - /// If a [String], expects [InvalidGenerationSourceError.element] to match an |
| 106 | + /// If a [String], expects [InvalidGenerationSource.element] to match an |
109 | 107 | /// element with the corresponding name.
|
110 | 108 | ///
|
111 |
| - /// If `true`, [InvalidGenerationSourceError.element] is expected to be |
| 109 | + /// If `true`, [InvalidGenerationSource.element] is expected to be |
112 | 110 | /// non-null.
|
113 | 111 | ///
|
114 |
| - /// If `false`, [InvalidGenerationSourceError.element] is not checked. |
| 112 | + /// If `false`, [InvalidGenerationSource.element] is not checked. |
115 | 113 | final dynamic element;
|
116 | 114 |
|
117 | 115 | const ShouldThrow(
|
|
0 commit comments