55 references to CharacterSetModificationKind
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 (15)
Completion\CompletionProviders\AttributeNamedParameterCompletionProvider.cs (1)
36CharacterSetModificationRule.Create(CharacterSetModificationKind.Remove, ' '));
Completion\CompletionProviders\CrefCompletionProvider.cs (2)
348private static readonly CharacterSetModificationRule s_WithoutOpenBrace = CharacterSetModificationRule.Create(CharacterSetModificationKind.Remove, '{'); 349private static readonly CharacterSetModificationRule s_WithoutOpenParen = CharacterSetModificationRule.Create(CharacterSetModificationKind.Remove, '(');
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)
53WithFilterCharacterRule(CharacterSetModificationRule.Create(CharacterSetModificationKind.Remove, '<')); 56[CharacterSetModificationRule.Create(CharacterSetModificationKind.Replace, '.', ';')]); 64rule = rule.WithCommitCharacterRule(CharacterSetModificationRule.Create(CharacterSetModificationKind.Remove, ':'));
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (1)
409commitCharacterRules: [CharacterSetModificationRule.Create(CharacterSetModificationKind.Add, '>', '\t')],
Microsoft.CodeAnalysis.EditorFeatures (7)
IntelliSense\AsyncCompletion\CommitManager.cs (3)
359case CharacterSetModificationKind.Add: 367case CharacterSetModificationKind.Remove: 375case CharacterSetModificationKind.Replace:
IntelliSense\AsyncCompletion\CompletionSource.cs (1)
582if (rule.Kind == CharacterSetModificationKind.Add)
IntelliSense\AsyncCompletion\Helpers.cs (3)
129case CharacterSetModificationKind.Add: 137case CharacterSetModificationKind.Remove: 145case CharacterSetModificationKind.Replace:
Microsoft.CodeAnalysis.Features (13)
Completion\CharacterSetModificationRule.cs (4)
17public CharacterSetModificationKind Kind { get; } 24private CharacterSetModificationRule(CharacterSetModificationKind kind, ImmutableArray<char> characters) 36public static CharacterSetModificationRule Create(CharacterSetModificationKind kind, ImmutableArray<char> characters) 45public static CharacterSetModificationRule Create(CharacterSetModificationKind kind, params char[] characters)
Completion\Providers\AbstractDocCommentCompletionProvider.cs (3)
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 (2)
22private static readonly ImmutableArray<CharacterSetModificationRule> s_commitRules = [CharacterSetModificationRule.Create(CharacterSetModificationKind.Replace, '(')]; 24private 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 (5)
Handler\Completion\CompletionResultFactory.cs (5)
410case CharacterSetModificationKind.Add: 413case CharacterSetModificationKind.Remove: 416case CharacterSetModificationKind.Replace: 441var xKind = x[i].Kind; 442var yKind = y[i].Kind;
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 (10)
Completion\CompletionProviders\CrefCompletionProvider.vb (2)
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)))