Example #1
0
 public void Render(TextWriter textWriter, bool isPublic)
 {
     AllocateBlock();
     if (_optionalComment != null)
     {
         textWriter.Write("// ");
         textWriter.Write(_optionalComment);
         textWriter.Write("\n");
     }
     if (isPublic)
     {
         textWriter.Write("public ");
     }
     CodeGenerationHelper.AppendClassName(textWriter, _returnType, null);
     textWriter.Write(" ");
     textWriter.Write(_methodName);
     textWriter.Write("(");
     CodegenNamedParam.Render(textWriter, _parameters);
     textWriter.Write("){{\n");
     _block.Render(textWriter);
     textWriter.Write("}}\n");
 }
Example #2
0
 public void Render(TextWriter textWriter)
 {
     CodeGenerationHelper.AppendClassName(textWriter, _type, null);
     textWriter.Write(" ");
     textWriter.Write(_name);
 }