1 write to Suffix
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
55
Suffix
= suffix ?? "";
19 references to Suffix
Microsoft.CodeAnalysis.CodeStyle (19)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (18)
64
return Prefix + combinedWordsWithCasing +
Suffix
;
130
if (!name.EndsWith(
Suffix
))
132
failureReason = string.Format(CompilerExtensionsResources.Missing_suffix_colon_0,
Suffix
);
136
if (name.Length <= Prefix.Length +
Suffix
.Length)
159
var spanToCheck = TextSpan.FromBounds(0, name.Length -
Suffix
.Length);
313
var addSuffix = !name.EndsWith(
Suffix
);
316
name = addSuffix ? (name +
Suffix
) : name;
384
if (
Suffix
.Length + Prefix.Length >= name.Length)
389
name = name[Prefix.Length..^
Suffix
.Length];
419
return Prefix + string.Join(WordSeparator, words) +
Suffix
;
427
for (var i =
Suffix
.Length; i > 0; i--)
429
if (name.EndsWith(
Suffix
[..i]))
430
return name +
Suffix
[i..];
433
return name +
Suffix
;
468
new XAttribute(nameof(
Suffix
),
Suffix
?? string.Empty),
477
suffix: namingStyleElement.Attribute(nameof(
Suffix
)).Value,
486
writer.WriteString(
Suffix
?? string.Empty);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (1)
101
entryWriter($"dotnet_naming_style.{serializedNameMap[namingStyle.ID]}.required_suffix", namingStyle.
Suffix
);