57 references to CompletionUtilities
Microsoft.CodeAnalysis.CSharp.Features (57)
Completion\CompletionProviders\AttributeNamedParameterCompletionProvider.cs (2)
47=> CompletionUtilities.IsTriggerCharacter(text, characterPosition, options); 49public override ImmutableHashSet<char> TriggerCharacters { get; } = CompletionUtilities.CommonTriggerCharacters;
Completion\CompletionProviders\AwaitCompletionProvider.cs (2)
30public override ImmutableHashSet<char> TriggerCharacters => CompletionUtilities.CommonTriggerCharactersWithArgumentList; 102=> 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\ExplicitInterfaceTypeCompletionProvider.cs (3)
39=> CompletionUtilities.IsTriggerAfterSpaceOrStartOfWordCharacter(text, insertedCharacterPosition, options); 41public override ImmutableHashSet<char> TriggerCharacters { get; } = CompletionUtilities.SpaceTriggerCharacter; 44=> 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)
103=> CompletionUtilities.IsTriggerCharacter(text, characterPosition, options) || text[characterPosition] == ' '; 105public 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)
45=> CompletionUtilities.IsTriggerAfterSpaceOrStartOfWordCharacter(text, characterPosition, options); 47public override ImmutableHashSet<char> TriggerCharacters { get; } = CompletionUtilities.SpaceTriggerCharacter; 221return CompletionUtilities.GetTargetCaretPositionForMethod(methodDeclaration);
Completion\CompletionProviders\PartialMethodCompletionProvider.cs (3)
67return CompletionUtilities.GetTargetCaretPositionForMethod(methodDeclaration); 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)
74public override ImmutableHashSet<char> TriggerCharacters { get; } = CompletionUtilities.CommonTriggerCharactersWithArgumentList; 145? CompletionUtilities.IsTriggerCharacterOrArgumentListCharacter(text, characterPosition, options) 146: CompletionUtilities.IsTriggerCharacter(text, characterPosition, options); 171if (!CompletionUtilities.TreatAsDot(token, characterPosition)) 182if (!CompletionUtilities.IsArgumentListCharacter(text[characterPosition])) 214=> CompletionUtilities.GetDisplayAndSuffixAndInsertionText(symbol, context);
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (1)
64CompletionUtilities.IsTriggerAfterSpaceOrStartOfWordCharacter(text, characterPosition, options);
Completion\CSharpCompletionService.cs (1)
41=> CompletionUtilities.GetCompletionItemSpan(text, caretPosition);