macroGeneratorBuilder function
Builder
macroGeneratorBuilder(
- BuilderOptions options
Builder factory for the macro generator.
This function creates a SharedPartBuilder
that uses the MacroGenerator
to generate code during the build process.
The generated code will be placed in a file with the extension '.g.dart' and will contain the processed macros from annotated elements.
This function is the entry point used by the build system to instantiate the generator with the provided options.
Implementation
Builder macroGeneratorBuilder(BuilderOptions options) =>
SharedPartBuilder([MacroGenerator()], 'macro_generator');