8 references to ValidTargets
Microsoft.CodeAnalysis (2)
Symbols\Attributes\AttributeUsageInfo.cs (2)
140
var value = (int)
ValidTargets
;
147
var validTargetsInt = (int)
ValidTargets
;
Microsoft.CodeAnalysis.CSharp (6)
Lowering\ClosureConversion\LambdaCapturedVariable.cs (1)
196
(attributeType.GetAttributeUsageInfo().
ValidTargets
& System.AttributeTargets.Field) != 0)
Lowering\StateMachineRewriter\StateMachineFieldSymbol.cs (1)
111
(attributeType.GetAttributeUsageInfo().
ValidTargets
& System.AttributeTargets.Field) != 0)
Symbols\Source\SourceNamedTypeSymbol.cs (1)
2086
|| (GetAttributeUsageInfo().
ValidTargets
& expectedTargets) != expectedTargets)
Symbols\Symbol_Attributes.cs (1)
937
if ((attributeTarget & attributeUsageInfo.
ValidTargets
) == 0)
Symbols\Synthesized\Records\SynthesizedPrimaryConstructorParameterBackingFieldSymbol.cs (1)
78
(attributeType.GetAttributeUsageInfo().
ValidTargets
& System.AttributeTargets.Field) != 0)
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (1)
207
moduleBuilder.Compilation.SynthesizeAttributeUsageAttribute(usageInfo.
ValidTargets
, usageInfo.AllowMultiple, usageInfo.Inherited));