codeBuilder function

Builder codeBuilder(
  1. BuilderOptions options
)

Builds code based on annotations and inference data

Implementation

Builder codeBuilder(BuilderOptions options) {
  return SharedPartBuilder(
    [
      GrpcServiceGenerator(options.config),
      ApplicationGenerator(options.config),
      AggregateGenerator(options.config),
      AggregateCommandGenerator(options.config),
      AggregateEventGenerator(options.config),
      AggregateValueGenerator(options.config),
      AggregateStateGenerator(options.config),
    ],
    'aggregate',
    allowSyntaxErrors: true,
  );
}