A source generator is the main entity of the AOT project.
It is responsible for generating sources, or resources, at
build time, but unlike annotation processors, source generators
can use a variety of different inputs, and can even execute
application code at build time to determine what optimizations
to generate.
- a static initializer, which is going to be included in the
optimized entry point generated class
- one or more source files
- one or more resource files
Code generators must be annotated with
AOTModule
.