示例#1
0
 void IDisposable.Dispose()
 {
     if (this.mFormatter != null)
     {
         this.mFormatter.Context.IndentLevel--;
         this.mFormatter = null;
     }
 }
示例#2
0
 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;
 }
示例#3
0
 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;
 }
示例#4
0
 void IDisposable.Dispose()
 {
     if (this.mFormatter != null)
     {
         this.mFormatter.Context.IndentLevel--;
         this.mFormatter = null;
     }
 }
示例#5
0
 public IndentContext(TsFormatter formatter)
 {
     this.mFormatter = formatter;
     this.mFormatter.Context.IndentLevel++;
 }
示例#6
0
 public IndentContext(TsFormatter formatter)
 {
     this.mFormatter = formatter;
     this.mFormatter.Context.IndentLevel++;
 }
示例#7
0
 public Scripter UsingFormatter(TsFormatter writer)
 {
     this.Writer = writer;
     return this;
 }