4 instantiations of SymbolSpecification
Microsoft.CodeAnalysis.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (1)
62symbolSpec = new SymbolSpecification(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (3)
56return new SymbolSpecification( 233return new SymbolSpecification( 278=> new(
32 references to SymbolSpecification
Microsoft.CodeAnalysis.Workspaces (31)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\NamingStyles\NamingStyleOption.cs (1)
8using static Microsoft.CodeAnalysis.Diagnostics.Analyzers.NamingStyles.SymbolSpecification;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (5)
25if (TryGetSymbolSpecification(namingRuleTitle, trimmedDictionary, out var symbolSpec) && 62using var _1 = ArrayBuilder<SymbolSpecification>.GetInstance(out var symbolSpecifications); 192if (modifier.ModifierKindWrapper is SymbolSpecification.ModifierKindEnum.IsStatic 193or SymbolSpecification.ModifierKindEnum.IsReadOnly) 195if (x.SymbolSpecification.RequiredModifierList.Any(static x => x.ModifierKindWrapper == SymbolSpecification.ModifierKindEnum.IsConst))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingRule.cs (1)
18SymbolSpecification symbolSpec,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (2)
15using static Microsoft.CodeAnalysis.Diagnostics.Analyzers.NamingStyles.SymbolSpecification; 52[NotNullWhen(true)] out SymbolSpecification? symbolSpec)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingRule.cs (2)
13SymbolSpecification symbolSpecification, 17public readonly SymbolSpecification SymbolSpecification = symbolSpecification;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (5)
275public readonly ImmutableArray<SymbolSpecification> SymbolSpecifications; 307ImmutableArray<SymbolSpecification> symbolSpecifications, 326ImmutableArray<SymbolSpecification> symbolSpecifications, 360[.. element.Element("SymbolSpecifications")!.Elements(nameof(SymbolSpecification)).Select(SymbolSpecification.FromXElement)],
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (5)
30ImmutableArray<SymbolSpecification> symbolSpecifications, 47ImmutableArray<SymbolSpecification> symbolSpecifications, 88foreach (var symbolSpecification in symbolSpecifications) 120ImmutableArray<SymbolSpecification> symbolSpecifications, 125foreach (var symbolSpecification in symbolSpecifications)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (10)
26ImmutableArray<SymbolSpecification.SymbolKindOrTypeKind> symbolKindList, 28ImmutableArray<SymbolSpecification.ModifierKind> modifiers = default) : IEquatable<SymbolSpecification> 30private static readonly SymbolSpecification DefaultSymbolSpecificationTemplate = CreateDefaultSymbolSpecification(); 50public static SymbolSpecification CreateDefaultSymbolSpecification() 188return Equals(obj as SymbolSpecification); 191public bool Equals(SymbolSpecification other) 214return new XElement(nameof(SymbolSpecification), 231public static SymbolSpecification ReadFrom(ObjectReader reader) 277internal static SymbolSpecification FromXElement(XElement symbolSpecificationElement)
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Options\NamingStylePreferencesTests.cs (1)
191/// we should avoid doing this in the future. If this test fails, update <see cref="SymbolSpecification.ModifierKind"/>