public TemplateRewriter(ModelDescriptor descriptor) { _descriptor = descriptor ?? throw new ArgumentNullException(nameof(descriptor)); }
protected ModelPartialGenerator(ModelDescriptor descriptor, ImmutableArray <TemplateDescriptor> templateDescriptors, CancellationToken cancellationToken) : base(descriptor, templateDescriptors, cancellationToken) { }
public static TypeDeclarationSyntax Generate(ModelDescriptor descriptor, ImmutableArray <TemplateDescriptor> templateDescriptors, CancellationToken cancellationToken) { var generator = new ModelPartialGenerator(descriptor, templateDescriptors, cancellationToken); return(generator.GenerateTypeDeclaration()); }
protected PartialGeneratorBase(ModelDescriptor descriptor, ImmutableArray <TemplateDescriptor> templateDescriptors, CancellationToken cancellationToken) { Descriptor = descriptor; TemplateDescriptors = templateDescriptors; CancellationToken = cancellationToken; }