private TextSpan GetTextChangeSpan(SourceText text, int position)
 {
     return(CommonCompletionUtilities.GetTextChangeSpan(
                text,
                position,
                (ch) => CompletionUtilities.IsTextChangeSpanStartCharacter(ch) || ch == '{',
                (ch) => CompletionUtilities.IsWordCharacter(ch) || ch == '{' || ch == '}'));
 }
Ejemplo n.º 2
0
 private static TextSpan GetCompletionItemSpan(SourceText text, int position)
 {
     return(CommonCompletionUtilities.GetWordSpan(
                text,
                position,
                ch => CompletionUtilities.IsCompletionItemStartCharacter(ch) || ch == '{',
                ch => CompletionUtilities.IsWordCharacter(ch) || ch == '{' || ch == '}'));
 }