public void Render(TextWriter textWriter) { if (_expression is CodegenExpressionRef) { _expression.Render(textWriter); } else { textWriter.Write("("); _expression.Render(textWriter); textWriter.Write(")"); } textWriter.Write(".Underlying"); }
public void Render(TextWriter textWriter) { if (_lhs is CodegenExpressionRef) { _lhs.Render(textWriter); } else { textWriter.Write("("); _lhs.Render(textWriter); textWriter.Write(")"); } textWriter.Write('.'); textWriter.Write(_name); }
public override void RenderStatement(TextWriter textWriter) { textWriter.Write("if ("); _condition.Render(textWriter); textWriter.Write(") return "); CodegenExpressionUtil.RenderConstant(textWriter, _constant); }
public void Render(TextWriter textWriter) { _lhs.Render(textWriter); textWriter.Write(" "); textWriter.Write(_not ? "!=" : "=="); textWriter.Write(" null"); }
public void Render(TextWriter textWriter) { _expression.Render(textWriter); textWriter.Write("["); _index.Render(textWriter); textWriter.Write("]"); }
public void Render(TextWriter textWriter) { textWriter.Write(_method); textWriter.Write("("); _expression.Render(textWriter); textWriter.Write(")"); }
public override void RenderStatement(TextWriter textWriter) { textWriter.Write(_name); textWriter.Write("["); _index.Render(textWriter); textWriter.Write("]="); _expression.Render(textWriter); }
public void Render(TextWriter textWriter) { textWriter.Write("(("); CodeGenerationHelper.AppendClassName(textWriter, _clazz, null); textWriter.Write(")"); _expression.Render(textWriter); textWriter.Write(")"); }
public override void RenderStatement(TextWriter textWriter) { CodeGenerationHelper.AppendClassName(textWriter, _clazz, null); textWriter.Write(" "); textWriter.Write(_var); textWriter.Write("="); _initializer.Render(textWriter); }
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(")"); }
public void Render(TextWriter textWriter) { _expression.Render(textWriter); foreach (CodegenChainElement element in _chain) { textWriter.Write("."); element.Render(textWriter); } }
public void Render(TextWriter textWriter) { textWriter.Write("("); _condition.Render(textWriter); textWriter.Write(" ? "); _expressionTrue.Render(textWriter); textWriter.Write(" : "); _expressionFalse.Render(textWriter); textWriter.Write(")"); }
public void Render(TextWriter textWriter) { textWriter.Write("(("); CodeGenerationHelper.AppendClassName(textWriter, _clazz, null); textWriter.Write(")"); _ref.Render(textWriter); textWriter.Write(".Underlying)"); textWriter.Write("["); textWriter.Write(_index); textWriter.Write("]"); }
public void Render(TextWriter textWriter) { textWriter.Write("(("); CodeGenerationHelper.AppendClassName(textWriter, _clazz, null); textWriter.Write(")"); _expression.Render(textWriter); textWriter.Write(".Underlying)."); textWriter.Write(_method); textWriter.Write("("); CodegenExpressionUtil.RenderConstant(textWriter, _constant); textWriter.Write(")"); }
public void Render(TextWriter textWriter) { int numDimensions = TypeHelper.GetNumberOfDimensions(_component); Type outermostType = TypeHelper.GetComponentTypeOutermost(_component); textWriter.Write("new "); CodeGenerationHelper.AppendClassName(textWriter, outermostType, null); textWriter.Write("["); _expression.Render(textWriter); textWriter.Write("]"); for (int i = 0; i < numDimensions; i++) { textWriter.Write("[]"); } }
public void Render(TextWriter textWriter) { CodeGenerationHelper.AppendClassName(textWriter, _target, null); textWriter.Write("."); textWriter.Write(_methodName); textWriter.Write("("); _expression.Render(textWriter); foreach (object constant in _consts) { textWriter.Write(","); CodegenExpressionUtil.RenderConstant(textWriter, constant); } textWriter.Write(")"); }
public void Render(TextWriter textWriter) { if (_not) { textWriter.Write("!("); } _lhs.Render(textWriter); textWriter.Write(" "); textWriter.Write("is "); CodeGenerationHelper.AppendClassName(textWriter, _clazz, null); if (_not) { textWriter.Write(")"); } }
public void Render(TextWriter textWriter) { _lhs.Render(textWriter); textWriter.Write(_op.GetOp()); _rhs.Render(textWriter); }
public override void RenderStatement(TextWriter textWriter) { _expression.Render(textWriter); }
public override void RenderStatement(TextWriter textWriter) { textWriter.Write(_ref); textWriter.Write("="); _assignment.Render(textWriter); }
public override void RenderStatement(TextWriter textWriter) { textWriter.Write("return "); _expression.Render(textWriter); }