예제 #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;
 }