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);
}