31 references to Capitalization
Microsoft.CodeAnalysis.CodeStyle (31)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\NamingStyles\NamingStyleOption.cs (1)
54EditorConfigOption<Capitalization> Capitalization);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingStyle.cs (14)
88(Capitalization capitalization, TData data), TResult> constructor, 149out (Capitalization capitalization, TData data) result) 174[NotNullWhen(true)] out Capitalization? capitalization) 178"pascal_case" => Capitalization.PascalCase, 179"camel_case" => Capitalization.CamelCase, 180"first_word_upper" => Capitalization.FirstUpper, 181"all_upper" => Capitalization.AllUpper, 182"all_lower" => Capitalization.AllLower, 189public static string ToEditorConfigString(this Capitalization capitalization) 192Capitalization.PascalCase => "pascal_case", 193Capitalization.CamelCase => "camel_case", 194Capitalization.FirstUpper => "first_word_upper", 195Capitalization.AllUpper => "all_upper", 196Capitalization.AllLower => "all_lower",
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (16)
42public Capitalization CapitalizationScheme { get; init; } 50Capitalization capitalizationScheme = Capitalization.PascalCase) 71case Capitalization.PascalCase: 73case Capitalization.CamelCase: 75case Capitalization.FirstUpper: 77case Capitalization.AllUpper: 79case Capitalization.AllLower: 164case Capitalization.PascalCase: return CheckPascalCase(name, spanToCheck, out failureReason); 165case Capitalization.CamelCase: return CheckCamelCase(name, spanToCheck, out failureReason); 166case Capitalization.FirstUpper: return CheckFirstUpper(name, spanToCheck, out failureReason); 167case Capitalization.AllUpper: return CheckAllUpper(name, spanToCheck, out failureReason); 168case Capitalization.AllLower: return CheckAllLower(name, spanToCheck, out failureReason); 479capitalizationScheme: (Capitalization)Enum.Parse(typeof(Capitalization), namingStyleElement.Attribute(nameof(CapitalizationScheme)).Value)); 498(Capitalization)reader.ReadInt32());