Microsoft.R.Core.Formatting.FormattingScope.CurrentLineIndent C# (CSharp) 메소드

CurrentLineIndent() 개인적인 메소드

private CurrentLineIndent ( TextBuilder tb ) : int
tb Microsoft.Languages.Core.Formatting.TextBuilder
리턴 int
        private int CurrentLineIndent(TextBuilder tb) {
            for (int i = tb.Length - 1; i >= 0; i--) {
                if (CharExtensions.IsLineBreak(tb.Text[i])) {
                    return IndentBuilder.TextIndentInSpaces(tb.Text.Substring(i + 1), _options.TabSize);
                }
            }
            return 0;
        }