コード例 #1
0
 public void Render(TextWriter textWriter)
 {
     if (_expression is CodegenExpressionRef)
     {
         _expression.Render(textWriter);
     }
     else
     {
         textWriter.Write("(");
         _expression.Render(textWriter);
         textWriter.Write(")");
     }
     textWriter.Write(".Underlying");
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 public override void RenderStatement(TextWriter textWriter)
 {
     textWriter.Write("if (");
     _condition.Render(textWriter);
     textWriter.Write(") return ");
     CodegenExpressionUtil.RenderConstant(textWriter, _constant);
 }
コード例 #4
0
 public void Render(TextWriter textWriter)
 {
     _lhs.Render(textWriter);
     textWriter.Write(" ");
     textWriter.Write(_not ? "!=" : "==");
     textWriter.Write(" null");
 }
コード例 #5
0
 public void Render(TextWriter textWriter)
 {
     _expression.Render(textWriter);
     textWriter.Write("[");
     _index.Render(textWriter);
     textWriter.Write("]");
 }
コード例 #6
0
 public void Render(TextWriter textWriter)
 {
     textWriter.Write(_method);
     textWriter.Write("(");
     _expression.Render(textWriter);
     textWriter.Write(")");
 }
コード例 #7
0
 public override void RenderStatement(TextWriter textWriter)
 {
     textWriter.Write(_name);
     textWriter.Write("[");
     _index.Render(textWriter);
     textWriter.Write("]=");
     _expression.Render(textWriter);
 }
コード例 #8
0
 public void Render(TextWriter textWriter)
 {
     textWriter.Write("((");
     CodeGenerationHelper.AppendClassName(textWriter, _clazz, null);
     textWriter.Write(")");
     _expression.Render(textWriter);
     textWriter.Write(")");
 }
コード例 #9
0
 public override void RenderStatement(TextWriter textWriter)
 {
     CodeGenerationHelper.AppendClassName(textWriter, _clazz, null);
     textWriter.Write(" ");
     textWriter.Write(_var);
     textWriter.Write("=");
     _initializer.Render(textWriter);
 }
コード例 #10
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(")");
 }
コード例 #11
0
 public void Render(TextWriter textWriter)
 {
     _expression.Render(textWriter);
     foreach (CodegenChainElement element in _chain)
     {
         textWriter.Write(".");
         element.Render(textWriter);
     }
 }
コード例 #12
0
 public void Render(TextWriter textWriter)
 {
     textWriter.Write("(");
     _condition.Render(textWriter);
     textWriter.Write(" ? ");
     _expressionTrue.Render(textWriter);
     textWriter.Write(" : ");
     _expressionFalse.Render(textWriter);
     textWriter.Write(")");
 }
コード例 #13
0
 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("]");
 }
コード例 #14
0
 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(")");
 }
コード例 #15
0
 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(")");
 }
コード例 #17
0
 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(")");
     }
 }
コード例 #18
0
 public void Render(TextWriter textWriter)
 {
     _lhs.Render(textWriter);
     textWriter.Write(_op.GetOp());
     _rhs.Render(textWriter);
 }
コード例 #19
0
 public override void RenderStatement(TextWriter textWriter)
 {
     _expression.Render(textWriter);
 }
コード例 #20
0
 public override void RenderStatement(TextWriter textWriter)
 {
     textWriter.Write(_ref);
     textWriter.Write("=");
     _assignment.Render(textWriter);
 }
コード例 #21
0
 public override void RenderStatement(TextWriter textWriter)
 {
     textWriter.Write("return ");
     _expression.Render(textWriter);
 }