public override void Write(IndentedStreamWriter w)
 {
     if (asInitializer)
     {
         string def = local.GetAsDefinition();
         w.Write(def);
         WriteAssignment(w);
     }
     else
     {
         local.WriteAsReference(w);
         WriteAssignment(w);
     }
 }
 public override void WriteAsDefinition(IndentedStreamWriter writer)
 {
     writer.Write($"{type} {name}");
 }
 public void WriteAfterKeyWord(IndentedStreamWriter w, string keyWord)
 {
     w.Write(keyWord + (keyWord.EndsWith(" ") ? "" : " "));
     w.Write(GetAsEOL());
 }
 public void WriteAsAssignment(IndentedStreamWriter w, Variable v)
 {
     v.WriteAsReference(w);
     w.Write((Content.ToString().StartsWith("=") ? "" : "= ") + GetAsEOL());
 }
Ejemplo n.º 5
0
 protected void WriteAssignment(IndentedStreamWriter w)
 {
     w.Write($" = {expresion.GetAsEOL()}");
 }
 public override void Write(IndentedStreamWriter w)
 {
     w.Write(LineToWrite);
 }
 public void WriteAsReference(IndentedStreamWriter writer)
 {
     writer.Write(name + (name.EndsWith(" ") ? "" : " "));
 }
Ejemplo n.º 8
0
 public override void Write(IndentedStreamWriter w)
 {
     w.Write($"{mem.Name}");
     WriteAssignment(w);
 }