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