generateForAnnotatedElement abstract method
dynamic
generateForAnnotatedElement(
- BuildStep buildStep,
- Element element,
- ElementAnnotation annotation
Generates code for a single annotated element.
This is called for each element in the library that has the annotation this generator is targeting.
@param buildStep The build step providing context for generation @param element The annotated element @param annotation The annotation instance on the element @return Generated code as a string, or null if nothing to generate
Implementation
dynamic generateForAnnotatedElement(
BuildStep buildStep,
Element element,
ElementAnnotation annotation,
);