Core.Colorizer.CreateLeadingWhitespaceRun C# (CSharp) 메소드

CreateLeadingWhitespaceRun() 개인적인 정적인 메소드

private static CreateLeadingWhitespaceRun ( string code, int position, TokenInfo token ) : System.Windows.Documents.Run
code string
position int
token TokenInfo
리턴 System.Windows.Documents.Run
        private static Run CreateLeadingWhitespaceRun(string code, int position, TokenInfo token)
        {
            var text = code.Substring(position, token.SourceSpan.Start.Index - position);
            return new Run(text);
        }