1 write to Prefix
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
54
Prefix
= prefix ?? "";
25 references to Prefix
Microsoft.CodeAnalysis.Workspaces (25)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (24)
64
return
Prefix
+ combinedWordsWithCasing + Suffix;
124
if (!name.StartsWith(
Prefix
))
126
failureReason = string.Format(CompilerExtensionsResources.Missing_prefix_colon_0,
Prefix
);
136
if (name.Length <=
Prefix
.Length + Suffix.Length)
146
name = StripCommonPrefixes(name[
Prefix
.Length..], out var prefix);
152
failureReason =
Prefix
== string.Empty
154
: string.Format(CompilerExtensionsResources.Prefix_0_does_not_match_expected_prefix_1, prefix,
Prefix
);
310
name = StripCommonPrefixes(name.StartsWith(
Prefix
) ? name[
Prefix
.Length..] : name, out _);
312
var addPrefix = !name.StartsWith(
Prefix
);
315
name = addPrefix ? (
Prefix
+ name) : name;
384
if (Suffix.Length +
Prefix
.Length >= name.Length)
389
name = name[
Prefix
.Length..^Suffix.Length];
419
return
Prefix
+ string.Join(WordSeparator, words) + Suffix;
441
if (
Prefix
is [var prefixChar] &&
448
return
Prefix
+ name;
454
for (var i = 0; i <
Prefix
.Length; i++)
456
if (name.StartsWith(
Prefix
[i..]))
457
return
Prefix
[..i] + name;
460
return
Prefix
+ name;
467
new XAttribute(nameof(
Prefix
),
Prefix
?? string.Empty),
476
prefix: namingStyleElement.Attribute(nameof(
Prefix
)).Value,
485
writer.WriteString(
Prefix
?? string.Empty);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
112
entryWriter($"dotnet_naming_style.{serializedNameMap[namingStyle.ID]}.required_prefix", namingStyle.
Prefix
);