Beispiel #1
0
 public void Insert(string str, int index = 0)
 {
     var line = new CodeLine { tab = curruent, line = str };
     lines.Insert(index, line);
 }
Beispiel #2
0
 public string ToString(int indent)
 {
     return(string.Join(Environment.NewLine, lines.Select(line => CodeLine.Tab(indent) + line.ToString())));
 }