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