Codegen

object Codegen

Functions

Link copied to clipboard

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

Register the parser as a transport configuration, which will be used to parse the transport section of a SAMT provider. Only transport configurations registered here will be considered when calling generate.