void IDisposable.Dispose() { if (this.mFormatter != null) { this.mFormatter.Context.IndentLevel--; this.mFormatter = null; } }
public StringBuilderContext(TsFormatter writer) { this.Writer = writer; this.PriorContext = writer.Context; this.IndentLevel = this.PriorContext != null ? this.PriorContext.IndentLevel : 0; this.StringBuilder = new StringBuilder(); this.Writer.Context = this; }
public IndentContext(TsFormatter formatter) { this.mFormatter = formatter; this.mFormatter.Context.IndentLevel++; }
public Scripter UsingFormatter(TsFormatter writer) { this.Writer = writer; return this; }