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