18 references to Method
Microsoft.CodeAnalysis.CSharp (18)
Declarations\DeclarationTreeBuilder.cs (1)
708
if (attributeListSyntax.Target?.Identifier.ToAttributeLocation() == AttributeLocation.
Method
)
Symbols\Source\AttributeLocation.cs (2)
66
case AttributeLocation.
Method
:
144
return AttributeLocation.
Method
;
Symbols\Source\SourceFieldLikeEventSymbol.cs (2)
167
AttributeLocation.Event | AttributeLocation.
Method
| AttributeLocation.Field :
168
AttributeLocation.Event | AttributeLocation.
Method
;
Symbols\Source\SourceMethodSymbolWithAttributes.cs (4)
147
get { return AttributeLocation.
Method
; }
159
return AttributeLocation.
Method
;
164
return AttributeLocation.
Method
| AttributeLocation.Return | AttributeLocation.Parameter;
167
return AttributeLocation.
Method
| AttributeLocation.Return;
Symbols\Source\SourceNamedTypeSymbol.cs (1)
821
return AttributeLocation.Type | (HasPrimaryConstructor ? AttributeLocation.
Method
: 0);
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (8)
70
get { return AttributeLocation.
Method
; }
142
Debug.Assert(arguments.SymbolPart == AttributeLocation.
Method
);
145
arguments.SymbolPart = AttributeLocation.
Method
;
151
Debug.Assert(arguments.SymbolPart == AttributeLocation.
Method
);
154
arguments.SymbolPart = AttributeLocation.
Method
;
159
Debug.Assert(symbolPart is AttributeLocation.
Method
or AttributeLocation.Return);
160
base.PostDecodeWellKnownAttributes(boundAttributes, allAttributeSyntaxNodes, diagnostics, symbolPart is AttributeLocation.
Method
? AttributeLocation.None : symbolPart, decodedData);
185
target.GetLocation(), target.ToString(), (AttributeOwner.AllowedAttributeLocations & ~AttributeLocation.
Method
).ToDisplayString());