58 references to CompletionUtilities
Microsoft.CodeAnalysis.CSharp.Features (58)
Completion\CompletionProviders\AttributeNamedParameterCompletionProvider.cs (2)
47=> CompletionUtilities.IsTriggerCharacter(text, characterPosition, options); 49public override ImmutableHashSet<char> TriggerCharacters { get; } = CompletionUtilities.CommonTriggerCharacters;
Completion\CompletionProviders\AwaitCompletionProvider.cs (2)
32public override ImmutableHashSet<char> TriggerCharacters => CompletionUtilities.CommonTriggerCharactersWithArgumentList; 144=> CompletionUtilities.GetDotTokenLeftOfPosition(syntaxTree, position, cancellationToken);
Completion\CompletionProviders\CrefCompletionProvider.cs (4)
54=> CompletionUtilities.IsTriggerCharacter(text, characterPosition, options); 56public override ImmutableHashSet<char> TriggerCharacters { get; } = CompletionUtilities.CommonTriggerCharacters; 232ch => CompletionUtilities.IsCompletionItemStartCharacter(ch) || ch == '{', 233ch => CompletionUtilities.IsWordCharacter(ch) || ch is '{' or '}');
Completion\CompletionProviders\DeclarationName\DeclarationNameCompletionProvider.cs (2)
36=> CompletionUtilities.IsTriggerAfterSpaceOrStartOfWordCharacter(text, insertedCharacterPosition, options); 38public override ImmutableHashSet<char> TriggerCharacters { get; } = CompletionUtilities.SpaceTriggerCharacter;
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (1)
56options.TriggerOnTypingLetters && CompletionUtilities.IsStartingNewWord(text, characterPosition);
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.cs (1)
102return CompletionUtilities.GetTargetCaretNodeForInsertedMember(caretTarget).GetLocation().SourceSpan.End;
Completion\CompletionProviders\ExplicitInterfaceTypeCompletionProvider.cs (3)
34=> CompletionUtilities.IsTriggerAfterSpaceOrStartOfWordCharacter(text, insertedCharacterPosition, options); 36public override ImmutableHashSet<char> TriggerCharacters { get; } = CompletionUtilities.SpaceTriggerCharacter; 39=> CompletionUtilities.GetDisplayAndSuffixAndInsertionText(symbol, context);
Completion\CompletionProviders\ExternAliasCompletionProvider.cs (2)
35=> CompletionUtilities.IsTriggerCharacter(text, characterPosition, options); 37public override ImmutableHashSet<char> TriggerCharacters { get; } = CompletionUtilities.CommonTriggerCharacters;
Completion\CompletionProviders\FunctionPointerUnmanagedCallingConventionCompletionProvider.cs (2)
37=> CompletionUtilities.IsTriggerCharacter(text, characterPosition, options); 39public override ImmutableHashSet<char> TriggerCharacters { get; } = CompletionUtilities.CommonTriggerCharacters;
Completion\CompletionProviders\ImportCompletion\ExtensionMethodImportCompletionProvider.cs (2)
34=> CompletionUtilities.IsTriggerCharacter(text, characterPosition, options); 36public override ImmutableHashSet<char> TriggerCharacters { get; } = CompletionUtilities.CommonTriggerCharacters;
Completion\CompletionProviders\ImportCompletion\TypeImportCompletionProvider.cs (2)
34=> CompletionUtilities.IsTriggerCharacter(text, characterPosition, options); 36public 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) || 182CompletionUtilities.IsCompilerDirectiveTriggerCharacter(text, characterPosition); 184public override ImmutableHashSet<char> TriggerCharacters { get; } = CompletionUtilities.CommonTriggerCharacters.Add(' ');
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (2)
49=> CompletionUtilities.IsTriggerCharacter(text, characterPosition, options); 51public override ImmutableHashSet<char> TriggerCharacters { get; } = CompletionUtilities.CommonTriggerCharacters;
Completion\CompletionProviders\ObjectAndWithInitializerCompletionProvider.cs (2)
98=> CompletionUtilities.IsTriggerCharacter(text, characterPosition, options) || text[characterPosition] == ' '; 100public override ImmutableHashSet<char> TriggerCharacters { get; } = CompletionUtilities.CommonTriggerCharacters.Add(' ');
Completion\CompletionProviders\ObjectCreationCompletionProvider.cs (2)
37=> CompletionUtilities.IsTriggerAfterSpaceOrStartOfWordCharacter(text, characterPosition, options); 39public override ImmutableHashSet<char> TriggerCharacters { get; } = CompletionUtilities.SpaceTriggerCharacter;
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider.cs (1)
80if (CompletionUtilities.GetDotTokenLeftOfPosition(root.SyntaxTree, position, cancellationToken) is not SyntaxToken dotToken)
Completion\CompletionProviders\OverrideCompletionProvider.cs (3)
40=> CompletionUtilities.IsTriggerAfterSpaceOrStartOfWordCharacter(text, characterPosition, options); 42public override ImmutableHashSet<char> TriggerCharacters { get; } = CompletionUtilities.SpaceTriggerCharacter; 209return CompletionUtilities.GetTargetCaretNodeForInsertedMember(caretTarget).GetLocation().SourceSpan.End;
Completion\CompletionProviders\PartialMethodCompletionProvider.cs (3)
67return CompletionUtilities.GetTargetCaretPositionForMethod(methodDeclaration).GetLocation().SourceSpan.End; 78options.TriggerOnTypingLetters && CompletionUtilities.IsStartingNewWord(text, characterPosition); 80public override ImmutableHashSet<char> TriggerCharacters { get; } = CompletionUtilities.SpaceTriggerCharacter;
Completion\CompletionProviders\PartialTypeCompletionProvider.cs (2)
53options.TriggerOnTypingLetters && CompletionUtilities.IsStartingNewWord(text, characterPosition); 55public override ImmutableHashSet<char> TriggerCharacters { get; } = CompletionUtilities.SpaceTriggerCharacter;
Completion\CompletionProviders\PreprocessorCompletionProvider.cs (2)
29=> CompletionUtilities.IsTriggerCharacter(text, characterPosition, options); 31public override ImmutableHashSet<char> TriggerCharacters { get; } = CompletionUtilities.CommonTriggerCharacters;
Completion\CompletionProviders\PropertySubPatternCompletionProvider.cs (2)
166=> CompletionUtilities.IsTriggerCharacter(text, characterPosition, options) || text[characterPosition] == ' '; 168public override ImmutableHashSet<char> TriggerCharacters { get; } = CompletionUtilities.CommonTriggerCharacters.Add(' ');
Completion\CompletionProviders\SnippetCompletionProvider.cs (2)
68=> CompletionUtilities.IsTriggerCharacter(text, characterPosition, options); 70public override ImmutableHashSet<char> TriggerCharacters { get; } = CompletionUtilities.CommonTriggerCharacters;
Completion\CompletionProviders\SpeculativeTCompletionProvider.cs (2)
36=> CompletionUtilities.IsTriggerCharacter(text, characterPosition, options); 38public override ImmutableHashSet<char> TriggerCharacters { get; } = CompletionUtilities.CommonTriggerCharacters;
Completion\CompletionProviders\SymbolCompletionProvider.cs (6)
70public override ImmutableHashSet<char> TriggerCharacters { get; } = CompletionUtilities.CommonTriggerCharactersWithArgumentList; 141? CompletionUtilities.IsTriggerCharacterOrArgumentListCharacter(text, characterPosition, options) 142: CompletionUtilities.IsTriggerCharacter(text, characterPosition, options); 167if (!CompletionUtilities.TreatAsDot(token, characterPosition)) 178if (!CompletionUtilities.IsArgumentListCharacter(text[characterPosition])) 210=> CompletionUtilities.GetDisplayAndSuffixAndInsertionText(symbol, context);
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (1)
64CompletionUtilities.IsTriggerAfterSpaceOrStartOfWordCharacter(text, characterPosition, options);
Completion\CSharpCompletionService.cs (1)
41=> CompletionUtilities.GetCompletionItemSpan(text, caretPosition);