2 types derived from SourceMethodSymbol
Microsoft.CodeAnalysis.CSharp (2)
Symbols\Source\LambdaSymbol.cs (1)
16internal sealed class LambdaSymbol : SourceMethodSymbol
Symbols\Source\LocalFunctionOrSourceMemberMethodSymbol.cs (1)
10internal abstract class LocalFunctionOrSourceMemberMethodSymbol : SourceMethodSymbol
40 references to SourceMethodSymbol
Microsoft.CodeAnalysis.CSharp (26)
Compilation\CSharpCompilation.cs (2)
372SourceMethodSymbol { IsRuntimeAsyncEnabledInMethod: ThreeState.True } => true, 373SourceMethodSymbol { IsRuntimeAsyncEnabledInMethod: ThreeState.False } => false,
FlowAnalysis\DefiniteAssignment.cs (1)
661if (CurrentSymbol is SourceMethodSymbol sourceMethod &&
Lowering\DiagnosticsPass_ExpressionTrees.cs (5)
29private SourceMethodSymbol _staticLocalOrAnonymousFunction; 155var outerLocalFunction = _staticLocalOrAnonymousFunction; 158_staticLocalOrAnonymousFunction = (SourceMethodSymbol)node.Symbol; 685var outerLocalFunction = _staticLocalOrAnonymousFunction; 688_staticLocalOrAnonymousFunction = (SourceMethodSymbol)node.Symbol;
Lowering\SynthesizedMethodBaseSymbol.cs (2)
179public sealed override bool AreLocalsZeroed => !(BaseMethod is SourceMethodSymbol sourceMethod) || sourceMethod.AreLocalsZeroed; 218InheritsBaseMethodAttributes && BaseMethod is SourceMethodSymbol { IsRuntimeAsyncEnabledInMethod: var value }
Symbols\Extensions\SourceExtensionImplementationMethodSymbol.cs (1)
81SourceMethodSymbol.AddSynthesizedAttributes(this, moduleBuilder, ref attributes);
Symbols\Metadata\PE\PEMethodSymbol.cs (2)
1058bool isInstanceIncrementDecrementOrCompoundAssignmentOperator = SourceMethodSymbol.IsInstanceIncrementDecrementOrCompoundAssignmentOperator(this); 1572(SourceMethodSymbol.IsInstanceIncrementDecrementOrCompoundAssignmentOperator(this) ?
Symbols\Source\SourceComplexParameterSymbol.cs (1)
85private Binder WithTypeParametersBinderOpt => (ContainingSymbol as SourceMethodSymbol)?.WithTypeParametersBinder;
Symbols\Source\SourceMethodSymbol.cs (2)
45if (ContainingSymbol is SourceMethodSymbol method) 154if (target is SourceMethodSymbol { NeedsSynthesizedRequiresUnsafeAttribute: true })
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
1131static ArrayBuilder<string> getNamespaceNames(SourceMethodSymbol @this) 1461static UnmanagedCallersOnlyAttributeData DecodeUnmanagedCallersOnlyAttributeData(SourceMethodSymbol @this, CSharpAttributeData attribute, Location location, BindingDiagnosticBag diagnostics)
Symbols\Source\SourcePropertySymbolBase.cs (1)
1293/// Analogous to <see cref="SourceMethodSymbol.BoundAttributesSource"/>.
Symbols\Source\SourceTypeParameterSymbol.cs (5)
590public abstract SourceMethodSymbol Owner { get; } 638private readonly SourceMethodSymbol _owner; 640public SourceNotOverridingMethodTypeParameterSymbol(SourceMethodSymbol owner, string name, int ordinal, ImmutableArray<Location> locations, ImmutableArray<SyntaxReference> syntaxRefs) 646public override SourceMethodSymbol Owner => _owner; 888public override SourceMethodSymbol Owner
Symbols\Symbol.cs (1)
1727internal static bool IsCaptured(Symbol variable, SourceMethodSymbol containingSymbol)
Symbols\TypeSymbol.cs (1)
1918if (!implementingMethod.IsExplicitInterfaceImplementation && implementingMethod is SourceMethodSymbol &&
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (14)
Symbols\CovariantReturnTests.cs (14)
3891var member = (SourceMethodSymbol)comp.GlobalNamespace.GetMember("Derived.M"); 4010var member = (SourceMethodSymbol)comp.GlobalNamespace.GetMember("Derived.M"); 4133var member = (SourceMethodSymbol)comp.GlobalNamespace.GetMember("Derived.M"); 4248var member = (SourceMethodSymbol)comp.GlobalNamespace.GetMember("Derived.M"); 4357var member = (SourceMethodSymbol)comp.GlobalNamespace.GetMember("Derived.M"); 4529var member = (SourceMethodSymbol)comp.GlobalNamespace.GetMember("Derived.get_Prop"); 4877var member = (SourceMethodSymbol)comp.GlobalNamespace.GetMember("Derived.get_P");