示例#1
0
 private MethodTemplate(Builder builder, TypeReference returnType, string name)
 {
     this._returnType  = returnType;
     this._name        = name;
     this._declaration = builder.Declaration();
     this._parameters  = builder.Parameters;
     this._statements  = builder.Statements.ToArray();
     this._modifiers   = builder.ModifiersConflict;
 }
示例#2
0
 public virtual CodeBlock Generate(MethodDeclaration.Builder builder)
 {
     return(Generate(builder.Build(_handle)));
 }