public CodeBlock(TextGenerator generator, string tail) { _tail = tail; _generator = generator; _generator.AppendLine("{"); _generator.AddTabLevel(); }
public DoWhileBlock(TextGenerator generator, bool valid) { _valid = valid; _generator = generator; if (_valid) { _generator.AppendLine("do"); _generator.AppendLine("{"); _generator.AddTabLevel(); } }
public IndentBlock(TextGenerator generator) { _generator = generator; _generator.AddTabLevel(); }
public CodeBlock(TextGenerator generator) { _generator = generator; _generator.AppendLine("{"); _generator.AddTabLevel(); }