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