Beispiel #1
0
 public override void ToDialect(CodeWriter writer)
 {
     if (expressions != null)
     {
         writer.append('<');
         expressions.toDialect(writer);
         writer.append('>');
     }
     else
     {
         writer.append("< >");
     }
 }
Beispiel #2
0
 public override void ToDialect(CodeWriter writer)
 {
     if (mutable)
     {
         writer.append("mutable ");
     }
     if (expressions != null)
     {
         writer.append('[');
         expressions.toDialect(writer);
         writer.append(']');
     }
     else
     {
         writer.append("[]");
     }
 }
Beispiel #3
0
 public override void ToDialect(CodeWriter writer)
 {
     if (mutable)
     {
         writer.append("mutable ");
     }
     if (expressions != null)
     {
         writer.append('(');
         expressions.toDialect(writer);
         if (expressions.Count == 1)
         {
             writer.append(',');
         }
         writer.append(')');
     }
     else
     {
         value.ToDialect(writer);
     }
 }
Beispiel #4
0
 public override void ToDialect(CodeWriter writer)
 {
     if (deletables != null)
     {
         writer.append("delete ");
         if (writer.getDialect() == Dialect.E)
         {
             deletables.toDialect(writer);
         }
         else
         {
             writer.append('(');
             deletables.toDialect(writer);
             writer.append(')');
         }
         if (storables != null)
         {
             writer.append(" and ");
         }
     }
     if (storables != null)
     {
         writer.append("store ");
         if (writer.getDialect() == Dialect.E)
         {
             storables.toDialect(writer);
         }
         else
         {
             writer.append('(');
             storables.toDialect(writer);
             writer.append(')');
         }
     }
     if (metadata != null)
     {
         if (writer.getDialect() == Dialect.E)
         {
             writer.append(" with ");
             metadata.ToDialect(writer);
             writer.append(" as metadata");
         }
         else
         {
             writer.append(" with metadata (");
             metadata.ToDialect(writer);
             writer.append(")");
         }
     }
     if (andThen != null)
     {
         if (writer.getDialect() == Dialect.O)
         {
             writer.append(" then {").newLine().indent();
             andThen.ToDialect(writer);
             writer.dedent().append("}");
         }
         else
         {
             writer.append(" then:").newLine().indent();
             andThen.ToDialect(writer);
             writer.dedent();
         }
     }
 }