Example #1
0
 public FieldBuilder New(CodeIdentifier name, IType type)
 {
     return(new FieldBuilder(AddMember(new CodeField(name, type))));
 }
Example #2
0
 public PropertyBuilder New(CodeIdentifier name, IType type)
 {
     return(new PropertyBuilder(AddMember(new CodeProperty(name, type))));
 }
Example #3
0
 // who needs tuples when we have records
 public record ParameterComment(CodeIdentifier Parameter, string Comment);
Example #4
0
 public CodeMethod(CodeIdentifier name)
     : this(null, default, null, null, null, name, null, null)
 {
 }
Example #5
0
 internal void AddParameter(CodeIdentifier parameter, string comment)
 {
     _parameters.Add(new (parameter, comment));
 }