1 instantiation of CharacterSetModificationRule
Microsoft.CodeAnalysis.Features (1)
Completion\CharacterSetModificationRule.cs (1)
37=> new(kind, characters);
79 references to CharacterSetModificationRule
Microsoft.AspNetCore.App.Analyzers (2)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
45filterCharacterRules: ImmutableArray.Create(CharacterSetModificationRule.Create(CharacterSetModificationKind.Replace, Array.Empty<char>())));
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (1)
39filterCharacterRules: ImmutableArray.Create(CharacterSetModificationRule.Create(CharacterSetModificationKind.Replace, Array.Empty<char>())));
Microsoft.CodeAnalysis.CSharp.Features (18)
Completion\CompletionProviders\AttributeNamedParameterCompletionProvider.cs (1)
36CharacterSetModificationRule.Create(CharacterSetModificationKind.Remove, ' '));
Completion\CompletionProviders\CrefCompletionProvider.cs (5)
348private static readonly CharacterSetModificationRule s_WithoutOpenBrace = CharacterSetModificationRule.Create(CharacterSetModificationKind.Remove, '{'); 349private static readonly CharacterSetModificationRule s_WithoutOpenParen = CharacterSetModificationRule.Create(CharacterSetModificationKind.Remove, '('); 353var commitRules = ImmutableArray<CharacterSetModificationRule>.Empty;
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (1)
32CompletionItemRules.Default.WithCommitCharacterRules([CharacterSetModificationRule.Create(CharacterSetModificationKind.Replace, '.')])
Completion\CompletionProviders\KeywordCompletionProvider.cs (1)
187WithCommitCharacterRule(CharacterSetModificationRule.Create(CharacterSetModificationKind.Remove, ':'));
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (1)
38.WithFilterCharacterRule(CharacterSetModificationRule.Create(CharacterSetModificationKind.Remove, ':'));
Completion\CompletionProviders\ObjectCreationCompletionProvider.cs (3)
103commitCharacterRules: [CharacterSetModificationRule.Create(CharacterSetModificationKind.Replace, ' ', '(', '[')], 109commitCharacterRules: [CharacterSetModificationRule.Create(CharacterSetModificationKind.Replace, ' ', '(', '[', ';', '.')], 115commitCharacterRules: [CharacterSetModificationRule.Create(CharacterSetModificationKind.Replace, ' ', '(', '[', '{', ';', '.')],
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Operators.cs (2)
97.WithFilterCharacterRule(CharacterSetModificationRule.Create(CharacterSetModificationKind.Add, opCharacters)) 98.WithCommitCharacterRule(CharacterSetModificationRule.Create(CharacterSetModificationKind.Remove, opCharacters));
Completion\CompletionProviders\SymbolCompletionProvider.cs (3)
51WithFilterCharacterRule(CharacterSetModificationRule.Create(CharacterSetModificationKind.Remove, '<')); 54[CharacterSetModificationRule.Create(CharacterSetModificationKind.Replace, '.', ';')]); 62rule = rule.WithCommitCharacterRule(CharacterSetModificationRule.Create(CharacterSetModificationKind.Remove, ':'));
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (1)
409commitCharacterRules: [CharacterSetModificationRule.Create(CharacterSetModificationKind.Add, '>', '\t')],
Microsoft.CodeAnalysis.EditorFeatures (3)
IntelliSense\AsyncCompletion\CommitManager.cs (1)
355foreach (var rule in item.Rules.CommitCharacterRules)
IntelliSense\AsyncCompletion\CompletionSource.cs (1)
580foreach (var rule in roslynItem.Rules.FilterCharacterRules)
IntelliSense\AsyncCompletion\Helpers.cs (1)
125foreach (var rule in item.Rules.FilterCharacterRules)
Microsoft.CodeAnalysis.Features (34)
Completion\CharacterSetModificationRule.cs (4)
31/// Creates a new <see cref="CharacterSetModificationRule"/> instance. 36public static CharacterSetModificationRule Create(CharacterSetModificationKind kind, ImmutableArray<char> characters) 40/// Creates a new <see cref="CharacterSetModificationRule"/> instance. 45public static CharacterSetModificationRule Create(CharacterSetModificationKind kind, params char[] characters)
Completion\CompletionItemRules.cs (16)
51public ImmutableArray<CharacterSetModificationRule> FilterCharacterRules { get; } 56public ImmutableArray<CharacterSetModificationRule> CommitCharacterRules { get; } 80ImmutableArray<CharacterSetModificationRule> filterCharacterRules, 81ImmutableArray<CharacterSetModificationRule> commitCharacterRules, 105ImmutableArray<CharacterSetModificationRule> filterCharacterRules, 106ImmutableArray<CharacterSetModificationRule> commitCharacterRules, 128ImmutableArray<CharacterSetModificationRule> filterCharacterRules = default, 129ImmutableArray<CharacterSetModificationRule> commitCharacterRules = default, 162ImmutableArray<CharacterSetModificationRule> filterCharacterRules, 163ImmutableArray<CharacterSetModificationRule> commitCharacterRules, 173Optional<ImmutableArray<CharacterSetModificationRule>> filterRules = default, 174Optional<ImmutableArray<CharacterSetModificationRule>> commitRules = default, 208public CompletionItemRules WithFilterCharacterRules(ImmutableArray<CharacterSetModificationRule> filterCharacterRules) 211internal CompletionItemRules WithFilterCharacterRule(CharacterSetModificationRule rule) 214internal CompletionItemRules WithCommitCharacterRule(CharacterSetModificationRule rule) 220public CompletionItemRules WithCommitCharacterRules(ImmutableArray<CharacterSetModificationRule> commitCharacterRules)
Completion\Providers\AbstractDocCommentCompletionProvider.cs (6)
328private static readonly CharacterSetModificationRule WithoutQuoteRule = CharacterSetModificationRule.Create(CharacterSetModificationKind.Remove, '"'); 329private static readonly CharacterSetModificationRule WithoutSpaceRule = CharacterSetModificationRule.Create(CharacterSetModificationKind.Remove, ' '); 331protected static readonly ImmutableArray<CharacterSetModificationRule> FilterRules = [CharacterSetModificationRule.Create(CharacterSetModificationKind.Add, '!', '-', '[')];
Completion\Providers\AbstractMemberInsertingCompletionProvider.cs (4)
222private static readonly ImmutableArray<CharacterSetModificationRule> s_commitRules = [CharacterSetModificationRule.Create(CharacterSetModificationKind.Replace, '(')]; 224private static readonly ImmutableArray<CharacterSetModificationRule> s_filterRules = [CharacterSetModificationRule.Create(CharacterSetModificationKind.Remove, '(')];
Completion\Providers\Scripting\AbstractLoadDirectiveCompletionProvider.cs (1)
18commitCharacterRules: [CharacterSetModificationRule.Create(CharacterSetModificationKind.Replace, GetCommitCharacters())],
Completion\Providers\Scripting\AbstractReferenceDirectiveCompletionProvider.cs (1)
19commitCharacterRules: [CharacterSetModificationRule.Create(CharacterSetModificationKind.Replace, GetCommitCharacters())],
EmbeddedLanguages\DateAndTime\DateAndTimeEmbeddedCompletionProvider.cs (1)
30.WithFilterCharacterRule(CharacterSetModificationRule.Create(CharacterSetModificationKind.Replace, new char[] { }));
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexEmbeddedCompletionProvider.cs (1)
37.WithFilterCharacterRule(CharacterSetModificationRule.Create(CharacterSetModificationKind.Replace, Array.Empty<char>()));
Microsoft.CodeAnalysis.LanguageServer.Protocol (7)
Handler\Completion\CompletionResultFactory.cs (7)
69var commitCharactersRuleCache = new Dictionary<ImmutableArray<CharacterSetModificationRule>, string[]>(CommitCharacterArrayComparer.Instance); 230Dictionary<ImmutableArray<CharacterSetModificationRule>, string[]> currentRuleCache) 406foreach (var rule in rules.CommitCharacterRules) 426private sealed class CommitCharacterArrayComparer : IEqualityComparer<ImmutableArray<CharacterSetModificationRule>> 434public bool Equals([AllowNull] ImmutableArray<CharacterSetModificationRule> x, [AllowNull] ImmutableArray<CharacterSetModificationRule> y) 467public int GetHashCode([DisallowNull] ImmutableArray<CharacterSetModificationRule> obj)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
Completion\CompletionFeaturesTests.cs (2)
396mockService.NonDefaultRule = CompletionItemRules.Default.WithCommitCharacterRule(CharacterSetModificationRule.Create(CharacterSetModificationKind.Remove, ' ', '(')); 443mockService.NonDefaultRule = CompletionItemRules.Default.WithCommitCharacterRule(CharacterSetModificationRule.Create(CharacterSetModificationKind.Remove, ' ', '('));
Microsoft.CodeAnalysis.VisualBasic.Features (12)
Completion\CompletionProviders\CrefCompletionProvider.vb (4)
262Private Shared ReadOnly s_WithoutOpenParen As CharacterSetModificationRule = CharacterSetModificationRule.Create(CharacterSetModificationKind.Remove, "("c) 263Private Shared ReadOnly s_WithoutSpace As CharacterSetModificationRule = CharacterSetModificationRule.Create(CharacterSetModificationKind.Remove, " "c)
Completion\CompletionProviders\KeywordCompletionProvider.vb (1)
184WithCommitCharacterRule(CharacterSetModificationRule.Create(CharacterSetModificationKind.Remove, ":"c))
Completion\CompletionProviders\NamedParameterCompletionProvider.vb (2)
107WithFilterCharacterRule(CharacterSetModificationRule.Create(CharacterSetModificationKind.Remove, ":"c, "="c)). 108WithCommitCharacterRule(CharacterSetModificationRule.Create(CharacterSetModificationKind.Add, ":"c, "="c))
Completion\CompletionProviders\ObjectCreationCompletionProvider.vb (1)
61commitCharacterRules:=ImmutableArray.Create(CharacterSetModificationRule.Create(CharacterSetModificationKind.Replace, " "c, "("c)),
Completion\CompletionProviders\SymbolCompletionProvider.vb (4)
38WithFilterCharacterRule(CharacterSetModificationRule.Create(CharacterSetModificationKind.Remove, "("c)). 39WithCommitCharacterRule(CharacterSetModificationRule.Create(CharacterSetModificationKind.Add, "("c)) 42commitCharacterRules:=ImmutableArray.Create(CharacterSetModificationRule.Create(CharacterSetModificationKind.Replace, "."c))) 51rule = rule.WithCommitCharacterRule(CharacterSetModificationRule.Create(CharacterSetModificationKind.Remove, ":"c))
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
Snippets\SnippetCompletionProvider.vb (1)
78commitCharacterRules:=ImmutableArray.Create(CharacterSetModificationRule.Create(CharacterSetModificationKind.Replace, s_commitChars)))