Skip to content

Commit e896622

Browse files
authored
Add top level argument type in generated file (#3794)
Clean up the last instance of `^Builder.*(_)` after the same pattern was changed everywhere else to adhere to the strict top level inference lint. Add the `BuilderOptions` annotation in a string being written as a top level function in a generated file. There do not appear to be instances of this pattern in documentation.
1 parent 1c9fe5d commit e896622

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build_runner/test/integration_tests/utils/build_descriptor.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ ${builders.map(_builderFactory).join('\n')}
161161
''';
162162

163163
String _builderFactory(TestBuilderDefinition builder) =>
164-
'Builder ${builder.key}Factory(_) => ${builder.key};';
164+
'Builder ${builder.key}Factory(BuilderOptions _) => ${builder.key};';
165165

166166
String _buildToolFile(
167167
Iterable<TestBuilderDefinition> builders, Uri callingScript) =>

0 commit comments

Comments
 (0)