public void Dispose() { _tb.IndentBuilder.SetIndentLevel(_previousIndentLevel); } }
public void TryCloseScope(int tokenIndex) { if (_formattingScopes.Count > 1) { if (_formattingScopes.Peek().CloseCurlyBraceTokenIndex == tokenIndex) { FormattingScope scope = _formattingScopes.Pop(); scope.Dispose(); } } }