Example #1
0
 public void Render(
     StringBuilder builder,
     bool isInnerClass,
     int level,
     CodegenIndent indent)
 {
     builder.Append("new ").Append(_innerName).Append("(");
     CodegenExpressionBuilder.RenderExpressions(builder, _params, isInnerClass);
     builder.Append(")");
 }
Example #2
0
 public void Render(
     StringBuilder builder,
     bool isInnerClass,
     int level,
     CodegenIndent indent)
 {
     builder.Append("new ");
     CodeGenerationHelper.AppendClassName(builder, _clazz);
     builder.Append("(");
     CodegenExpressionBuilder.RenderExpressions(builder, _params, isInnerClass);
     builder.Append(")");
 }
        public void Render(
            StringBuilder builder,
            bool isInnerClass,
            int level,
            CodegenIndent indent)
        {
            int numDimensions = GetNumberOfDimensions(component);
            Type outermostType = GetComponentTypeOutermost(component);
            builder.Append("new ");
            CodeGenerationHelper.AppendClassName(builder, outermostType);
            builder.Append("[]");
            for (int i = 0; i < numDimensions; i++) {
                builder.Append("[]");
            }

            builder.Append("{");
            CodegenExpressionBuilder.RenderExpressions(builder, expressions, isInnerClass);
            builder.Append("}");
        }
 public void TraverseExpressions(Consumer<CodegenExpression> consumer)
 {
     CodegenExpressionBuilder.TraverseMultiple(_parameters, consumer);
 }
 public void MergeClasses(ISet<Type> classes)
 {
     CodegenExpressionBuilder.MergeClassesExpressions(classes, _params);
 }
Example #6
0
 public void TraverseExpressions(Consumer <CodegenExpression> consumer)
 {
     CodegenExpressionBuilder.TraverseMultiple(stringExpressions, consumer);
 }
Example #7
0
 public void TraverseExpressions(Consumer<CodegenExpression> consumer) {
     consumer.Invoke(_first);
     consumer.Invoke(_second);
     CodegenExpressionBuilder.TraverseMultiple(_optionalMore, consumer);
 }
Example #8
0
 public void MergeClasses(ISet<Type> classes)
 {
     classes.AddToSet(_clazz);
     CodegenExpressionBuilder.MergeClassesExpressions(classes, _params);
 }
 public override void TraverseExpressions(Consumer <CodegenExpression> consumer)
 {
     CodegenExpressionBuilder.TraverseMultiple(_optionalParams, consumer);
 }