32 references to NamingRule
Microsoft.CodeAnalysis.CodeStyle (32)
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 (13)
21
var _ = ArrayBuilder<(
NamingRule
rule, int priority, string title)>.GetInstance(out var namingRules);
125
private abstract class NamingRuleSubsetComparer : IComparer<
NamingRule
>
131
public int Compare(
NamingRule
x,
NamingRule
y)
147
/// implementation determines which properties of <see cref="
NamingRule
"/> are considered for this
154
protected abstract bool FirstIsSubset(in
NamingRule
x, in
NamingRule
y);
165
protected override bool FirstIsSubset(in
NamingRule
x, in
NamingRule
y)
187
protected override bool FirstIsSubset(in
NamingRule
x, in
NamingRule
y)
220
protected override bool FirstIsSubset(in
NamingRule
x, in
NamingRule
y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingRule.cs (1)
22
[NotNullWhen(true)] out
NamingRule
? namingRule,
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\NamingRule.cs (2)
15
ReportDiagnostic enforcementLevel) : IEquatable<
NamingRule
>
21
public bool Equals(
NamingRule
other)
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\NamingStylePreferences.cs (2)
328
ImmutableArray<
NamingRule
> namingRules)
339
public static NamingStylePreferences Empty { get; } = new([], [], ImmutableArray<
NamingRule
>.Empty);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (7)
32
ImmutableArray<
NamingRule
> namingRules,
49
ImmutableArray<
NamingRule
> rules,
65
foreach (
var
namingRule in rules)
170
private static ImmutableDictionary<
NamingRule
, string> AssignNamesToNamingStyleRules(ImmutableArray<
NamingRule
> namingRules, ImmutableDictionary<Guid, string> serializedNameMap)
172
var builder = ImmutableDictionary.CreateBuilder<
NamingRule
, string>();
173
foreach (
var
rule in namingRules)