Codegen
object Codegen
Functions
Link copied to clipboard
fun generate(semanticModel: SemanticModel, configuration: SamtGeneratorConfiguration, controller: DiagnosticController): List<CodegenFile>
Run the appropriate generator for the given configuration, using the given semanticModel. To ensure binary compatibility, the types within the semanticModel will be mapped to their tools.samt.api equivalents.
Link copied to clipboard
Register the generator to be used when generating code. The generator is called when a user configures it within their samt.yaml
configuration, where the generator is referenced by its Generator.name. Only generators registered here will be considered when calling generate.
Link copied to clipboard