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