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