Microsoft.Cci.SourceEmitter.IndentIfAtStartOfNewLine C# (CSharp) Method

IndentIfAtStartOfNewLine() private method

If nothing has yet been written to the current line, write out this.IndentationLevel*this.IndentSize number of spaces. (Calling this again before first calling EmitNewLine, will have no effect.)
private IndentIfAtStartOfNewLine ( ) : void
return void
    private void IndentIfAtStartOfNewLine() {
      if (this.atTheStartOfANewLine) {
        for (int i = 0, n = this.IndentationLevel*this.IndentSize; i < n; i++)
          this.textWriter.Write(' ');
        this.atTheStartOfANewLine = false;
      }
    }