Core.Colorizer.CreateLeadingWhitespaceRun C# (CSharp) Method

CreateLeadingWhitespaceRun() private static method

private static CreateLeadingWhitespaceRun ( string code, int position, TokenInfo token ) : System.Windows.Documents.Run
code string
position int
token TokenInfo
return 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);
        }