public override void ToSource(StringBuilder sb)
 {
     if (argumentName != null)
     {
         argumentName.ToSource(sb);
         sb.Append(" = ");
     }
     expression.ToSource(sb);
 }
 public void ToSource(StringBuilder sb)
 {
     Identifier.ToSource(sb);
     if (Initializer != null)
     {
         sb.Append(" = ");
         Initializer.ToSource(sb);
     }
 }
예제 #3
0
 public override void ToSource(StringBuilder sb)
 {
     sb.Append("#pragma ");
     if (identifier != null)
     {
         identifier.ToSource(sb);
     }
     sb.Append(" ");
     if (value != null && value.Count > 0)
     {
         value.ToSource(sb);
     }
     NewLine(sb);
 }
        public override void ToSource(StringBuilder sb)
        {
            sb.Append("using ");

            if (IsAlias)
            {
                aliasName.ToSource(sb);
                sb.Append(" = ");
            }

            // target
            target.ToSource(sb);

            sb.Append(";");
            NewLine(sb);
        }
예제 #5
0
        public override void ToSource(StringBuilder sb)
        {
            if (attributes != null)
            {
                attributes.ToSource(sb);
            }

            if (_identifier != null)
            {
                _identifier.ToSource(sb);
            }

            if (_type != null)
            {
                _type.ToSource(sb);
            }
        }
예제 #6
0
 public override void ToSource(StringBuilder sb)
 {
     sb.Append("catch");
     if (classType != null)
     {
         sb.Append("(");
         classType.ToSource(sb);
         if (identifier != null)
         {
             sb.Append(' ');
             identifier.ToSource(sb);
         }
         sb.Append(")");
     }
     NewLine(sb);
     catchBlock.ToSource(sb);
 }
예제 #7
0
 public override void ToSource(StringBuilder sb)
 {
     sb.Append("#define ");
     identifier.ToSource(sb);
     NewLine(sb);
 }
예제 #8
0
 public override void ToSource(StringBuilder sb)
 {
     name.ToSource(sb);
     sb.Append(": ");
     statement.ToSource(sb);
 }