21 references to NamingRule
Microsoft.CodeAnalysis.Workspaces (21)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeGeneration\ParameterName.cs (1)
46
public ParameterName(string nameBasedOnArgument, bool isFixed,
NamingRule
parameterNamingRule)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (12)
107
private abstract class NamingRuleSubsetComparer : IComparer<
NamingRule
>
113
public int Compare(
NamingRule
x,
NamingRule
y)
129
/// implementation determines which properties of <see cref="
NamingRule
"/> are considered for this
136
protected abstract bool FirstIsSubset(in
NamingRule
x, in
NamingRule
y);
147
protected override bool FirstIsSubset(in
NamingRule
x, in
NamingRule
y)
169
protected override bool FirstIsSubset(in
NamingRule
x, in
NamingRule
y)
202
protected override bool FirstIsSubset(in
NamingRule
x, in
NamingRule
y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Naming\IdentifierNameParts.cs (3)
21
public static IdentifierNameParts CreateIdentifierNameParts(ISymbol symbol, ImmutableArray<
NamingRule
> rules)
37
private static string RemovePrefixesAndSuffixes(ISymbol symbol, ImmutableArray<
NamingRule
> rules, string baseName)
41
foreach (
var
rule in rules)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyleRules.cs (3)
13
internal sealed class NamingStyleRules(ImmutableArray<
NamingRule
> namingRules)
15
public ImmutableArray<
NamingRule
> NamingRules { get; } = namingRules;
20
internal bool TryGetApplicableRule(ISymbol symbol, out
NamingRule
applicableRule)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SerializableNamingRule.cs (1)
24
public
NamingRule
GetRule(NamingStylePreferences info)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (1)
63
public static string GenerateUniqueName(IParameterSymbol parameter, ImmutableArray<string> parameterNameParts,
NamingRule
rule)