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