Skip to content

Commit

Permalink
Add top level argument type in generated file (#3794)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
natebosch authored Jan 6, 2025
1 parent 1c9fe5d commit e896622
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ ${builders.map(_builderFactory).join('\n')}
''';

String _builderFactory(TestBuilderDefinition builder) =>
'Builder ${builder.key}Factory(_) => ${builder.key};';
'Builder ${builder.key}Factory(BuilderOptions _) => ${builder.key};';

String _buildToolFile(
Iterable<TestBuilderDefinition> builders, Uri callingScript) =>
Expand Down

0 comments on commit e896622

Please sign in to comment.