public void Render(TextWriter textWriter)
 {
     textWriter.Write("new ");
     CodeGenerationHelper.AppendClassName(textWriter, _clazz, null);
     textWriter.Write("(");
     CodegenExpressionBuilder.RenderExpressions(textWriter, _parameters);
     textWriter.Write(")");
 }
Exemple #2
0
 public void Render(TextWriter textWriter)
 {
     CodeGenerationHelper.AppendClassName(textWriter, _target, null);
     textWriter.Write(".");
     textWriter.Write(_methodName);
     textWriter.Write("(");
     CodegenExpressionBuilder.RenderExpressions(textWriter, _parameters);
     textWriter.Write(")");
 }
Exemple #3
0
 public void Render(TextWriter textWriter)
 {
     if (_expression is CodegenExpressionRef)
     {
         _expression.Render(textWriter);
     }
     else
     {
         textWriter.Write("(");
         _expression.Render(textWriter);
         textWriter.Write(")");
     }
     textWriter.Write('.');
     textWriter.Write(_method);
     textWriter.Write("(");
     CodegenExpressionBuilder.RenderExpressions(textWriter, _parameters);
     textWriter.Write(")");
 }