57 references to CompletionUtilities
Microsoft.CodeAnalysis.CSharp.Features (57)
Completion\CompletionProviders\AttributeNamedParameterCompletionProvider.cs (2)
47
=>
CompletionUtilities
.IsTriggerCharacter(text, characterPosition, options);
49
public override ImmutableHashSet<char> TriggerCharacters { get; } =
CompletionUtilities
.CommonTriggerCharacters;
Completion\CompletionProviders\AwaitCompletionProvider.cs (2)
30
public override ImmutableHashSet<char> TriggerCharacters =>
CompletionUtilities
.CommonTriggerCharactersWithArgumentList;
102
=>
CompletionUtilities
.GetDotTokenLeftOfPosition(syntaxTree, position, cancellationToken);
Completion\CompletionProviders\CrefCompletionProvider.cs (4)
54
=>
CompletionUtilities
.IsTriggerCharacter(text, characterPosition, options);
56
public override ImmutableHashSet<char> TriggerCharacters { get; } =
CompletionUtilities
.CommonTriggerCharacters;
232
ch =>
CompletionUtilities
.IsCompletionItemStartCharacter(ch) || ch == '{',
233
ch =>
CompletionUtilities
.IsWordCharacter(ch) || ch is '{' or '}');
Completion\CompletionProviders\DeclarationName\DeclarationNameCompletionProvider.cs (2)
36
=>
CompletionUtilities
.IsTriggerAfterSpaceOrStartOfWordCharacter(text, insertedCharacterPosition, options);
38
public override ImmutableHashSet<char> TriggerCharacters { get; } =
CompletionUtilities
.SpaceTriggerCharacter;
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (1)
56
options.TriggerOnTypingLetters &&
CompletionUtilities
.IsStartingNewWord(text, characterPosition);
Completion\CompletionProviders\ExplicitInterfaceTypeCompletionProvider.cs (3)
39
=>
CompletionUtilities
.IsTriggerAfterSpaceOrStartOfWordCharacter(text, insertedCharacterPosition, options);
41
public override ImmutableHashSet<char> TriggerCharacters { get; } =
CompletionUtilities
.SpaceTriggerCharacter;
44
=>
CompletionUtilities
.GetDisplayAndSuffixAndInsertionText(symbol, context);
Completion\CompletionProviders\ExternAliasCompletionProvider.cs (2)
35
=>
CompletionUtilities
.IsTriggerCharacter(text, characterPosition, options);
37
public override ImmutableHashSet<char> TriggerCharacters { get; } =
CompletionUtilities
.CommonTriggerCharacters;
Completion\CompletionProviders\FunctionPointerUnmanagedCallingConventionCompletionProvider.cs (2)
37
=>
CompletionUtilities
.IsTriggerCharacter(text, characterPosition, options);
39
public override ImmutableHashSet<char> TriggerCharacters { get; } =
CompletionUtilities
.CommonTriggerCharacters;
Completion\CompletionProviders\ImportCompletion\ExtensionMethodImportCompletionProvider.cs (2)
34
=>
CompletionUtilities
.IsTriggerCharacter(text, characterPosition, options);
36
public override ImmutableHashSet<char> TriggerCharacters { get; } =
CompletionUtilities
.CommonTriggerCharacters;
Completion\CompletionProviders\ImportCompletion\TypeImportCompletionProvider.cs (2)
34
=>
CompletionUtilities
.IsTriggerCharacter(text, characterPosition, options);
36
public override ImmutableHashSet<char> TriggerCharacters { get; } =
CompletionUtilities
.CommonTriggerCharacters;
Completion\CompletionProviders\InternalsVisibleToCompletionProvider.cs (1)
60
=>
CompletionUtilities
.IsStartingNewWord(text, insertedCharacterPosition);
Completion\CompletionProviders\KeywordCompletionProvider.cs (3)
181
=>
CompletionUtilities
.IsTriggerCharacter(text, characterPosition, options) ||
182
CompletionUtilities
.IsCompilerDirectiveTriggerCharacter(text, characterPosition);
184
public override ImmutableHashSet<char> TriggerCharacters { get; } =
CompletionUtilities
.CommonTriggerCharacters.Add(' ');
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (2)
49
=>
CompletionUtilities
.IsTriggerCharacter(text, characterPosition, options);
51
public override ImmutableHashSet<char> TriggerCharacters { get; } =
CompletionUtilities
.CommonTriggerCharacters;
Completion\CompletionProviders\ObjectAndWithInitializerCompletionProvider.cs (2)
103
=>
CompletionUtilities
.IsTriggerCharacter(text, characterPosition, options) || text[characterPosition] == ' ';
105
public override ImmutableHashSet<char> TriggerCharacters { get; } =
CompletionUtilities
.CommonTriggerCharacters.Add(' ');
Completion\CompletionProviders\ObjectCreationCompletionProvider.cs (2)
37
=>
CompletionUtilities
.IsTriggerAfterSpaceOrStartOfWordCharacter(text, characterPosition, options);
39
public override ImmutableHashSet<char> TriggerCharacters { get; } =
CompletionUtilities
.SpaceTriggerCharacter;
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider.cs (1)
80
if (
CompletionUtilities
.GetDotTokenLeftOfPosition(root.SyntaxTree, position, cancellationToken) is not SyntaxToken dotToken)
Completion\CompletionProviders\OverrideCompletionProvider.cs (3)
45
=>
CompletionUtilities
.IsTriggerAfterSpaceOrStartOfWordCharacter(text, characterPosition, options);
47
public override ImmutableHashSet<char> TriggerCharacters { get; } =
CompletionUtilities
.SpaceTriggerCharacter;
221
return
CompletionUtilities
.GetTargetCaretPositionForMethod(methodDeclaration);
Completion\CompletionProviders\PartialMethodCompletionProvider.cs (3)
67
return
CompletionUtilities
.GetTargetCaretPositionForMethod(methodDeclaration);
78
options.TriggerOnTypingLetters &&
CompletionUtilities
.IsStartingNewWord(text, characterPosition);
80
public override ImmutableHashSet<char> TriggerCharacters { get; } =
CompletionUtilities
.SpaceTriggerCharacter;
Completion\CompletionProviders\PartialTypeCompletionProvider.cs (2)
53
options.TriggerOnTypingLetters &&
CompletionUtilities
.IsStartingNewWord(text, characterPosition);
55
public override ImmutableHashSet<char> TriggerCharacters { get; } =
CompletionUtilities
.SpaceTriggerCharacter;
Completion\CompletionProviders\PreprocessorCompletionProvider.cs (2)
29
=>
CompletionUtilities
.IsTriggerCharacter(text, characterPosition, options);
31
public override ImmutableHashSet<char> TriggerCharacters { get; } =
CompletionUtilities
.CommonTriggerCharacters;
Completion\CompletionProviders\PropertySubPatternCompletionProvider.cs (2)
166
=>
CompletionUtilities
.IsTriggerCharacter(text, characterPosition, options) || text[characterPosition] == ' ';
168
public override ImmutableHashSet<char> TriggerCharacters { get; } =
CompletionUtilities
.CommonTriggerCharacters.Add(' ');
Completion\CompletionProviders\SnippetCompletionProvider.cs (2)
68
=>
CompletionUtilities
.IsTriggerCharacter(text, characterPosition, options);
70
public override ImmutableHashSet<char> TriggerCharacters { get; } =
CompletionUtilities
.CommonTriggerCharacters;
Completion\CompletionProviders\SpeculativeTCompletionProvider.cs (2)
36
=>
CompletionUtilities
.IsTriggerCharacter(text, characterPosition, options);
38
public override ImmutableHashSet<char> TriggerCharacters { get; } =
CompletionUtilities
.CommonTriggerCharacters;
Completion\CompletionProviders\SymbolCompletionProvider.cs (6)
74
public override ImmutableHashSet<char> TriggerCharacters { get; } =
CompletionUtilities
.CommonTriggerCharactersWithArgumentList;
145
?
CompletionUtilities
.IsTriggerCharacterOrArgumentListCharacter(text, characterPosition, options)
146
:
CompletionUtilities
.IsTriggerCharacter(text, characterPosition, options);
171
if (!
CompletionUtilities
.TreatAsDot(token, characterPosition))
182
if (!
CompletionUtilities
.IsArgumentListCharacter(text[characterPosition]))
214
=>
CompletionUtilities
.GetDisplayAndSuffixAndInsertionText(symbol, context);
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (1)
64
CompletionUtilities
.IsTriggerAfterSpaceOrStartOfWordCharacter(text, characterPosition, options);
Completion\CSharpCompletionService.cs (1)
41
=>
CompletionUtilities
.GetCompletionItemSpan(text, caretPosition);