58 references to CompletionUtilities
Microsoft.CodeAnalysis.CSharp.Features (58)
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)
32
public override ImmutableHashSet<char> TriggerCharacters =>
CompletionUtilities
.CommonTriggerCharactersWithArgumentList;
144
=>
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\ExplicitInterfaceMemberCompletionProvider.cs (1)
102
return
CompletionUtilities
.GetTargetCaretNodeForInsertedMember(caretTarget).GetLocation().SourceSpan.End;
Completion\CompletionProviders\ExplicitInterfaceTypeCompletionProvider.cs (3)
34
=>
CompletionUtilities
.IsTriggerAfterSpaceOrStartOfWordCharacter(text, insertedCharacterPosition, options);
36
public override ImmutableHashSet<char> TriggerCharacters { get; } =
CompletionUtilities
.SpaceTriggerCharacter;
39
=>
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)
98
=>
CompletionUtilities
.IsTriggerCharacter(text, characterPosition, options) || text[characterPosition] == ' ';
100
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)
40
=>
CompletionUtilities
.IsTriggerAfterSpaceOrStartOfWordCharacter(text, characterPosition, options);
42
public override ImmutableHashSet<char> TriggerCharacters { get; } =
CompletionUtilities
.SpaceTriggerCharacter;
209
return
CompletionUtilities
.GetTargetCaretNodeForInsertedMember(caretTarget).GetLocation().SourceSpan.End;
Completion\CompletionProviders\PartialMethodCompletionProvider.cs (3)
67
return
CompletionUtilities
.GetTargetCaretPositionForMethod(methodDeclaration).GetLocation().SourceSpan.End;
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)
70
public override ImmutableHashSet<char> TriggerCharacters { get; } =
CompletionUtilities
.CommonTriggerCharactersWithArgumentList;
141
?
CompletionUtilities
.IsTriggerCharacterOrArgumentListCharacter(text, characterPosition, options)
142
:
CompletionUtilities
.IsTriggerCharacter(text, characterPosition, options);
167
if (!
CompletionUtilities
.TreatAsDot(token, characterPosition))
178
if (!
CompletionUtilities
.IsArgumentListCharacter(text[characterPosition]))
210
=>
CompletionUtilities
.GetDisplayAndSuffixAndInsertionText(symbol, context);
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (1)
64
CompletionUtilities
.IsTriggerAfterSpaceOrStartOfWordCharacter(text, characterPosition, options);
Completion\CSharpCompletionService.cs (1)
41
=>
CompletionUtilities
.GetCompletionItemSpan(text, caretPosition);