21 references to NamingRule
Microsoft.CodeAnalysis.Workspaces (21)
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 (12)
107private abstract class NamingRuleSubsetComparer : IComparer<NamingRule> 113public int Compare(NamingRule x, NamingRule y) 129/// implementation determines which properties of <see cref="NamingRule"/> are considered for this 136protected abstract bool FirstIsSubset(in NamingRule x, in NamingRule y); 147protected override bool FirstIsSubset(in NamingRule x, in NamingRule y) 169protected override bool FirstIsSubset(in NamingRule x, in NamingRule y) 202protected override bool FirstIsSubset(in NamingRule x, in NamingRule y)
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\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\SerializableNamingRule.cs (1)
24public NamingRule GetRule(NamingStylePreferences info)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (1)
63public static string GenerateUniqueName(IParameterSymbol parameter, ImmutableArray<string> parameterNameParts, NamingRule rule)