8 types derived from SourceMemberMethodSymbol
Microsoft.CodeAnalysis.CSharp (8)
Lowering\SynthesizedMethodBaseSymbol.cs (1)
23internal abstract class SynthesizedMethodBaseSymbol : SourceMemberMethodSymbol
Symbols\Source\SourceConstructorSymbolBase.cs (1)
17internal abstract class SourceConstructorSymbolBase : SourceMemberMethodSymbol
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
17internal abstract class SourceDelegateMethodSymbol : SourceMemberMethodSymbol
Symbols\Source\SourceDestructorSymbol.cs (1)
14internal sealed class SourceDestructorSymbol : SourceMemberMethodSymbol
Symbols\Source\SourceEventAccessorSymbol.cs (1)
15internal abstract class SourceEventAccessorSymbol : SourceMemberMethodSymbol
Symbols\Source\SourceOrdinaryMethodOrUserDefinedOperatorSymbol.cs (1)
17internal abstract class SourceOrdinaryMethodOrUserDefinedOperatorSymbol : SourceMemberMethodSymbol
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
17internal class SourcePropertyAccessorSymbol : SourceMemberMethodSymbol
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (1)
16internal sealed class SynthesizedSimpleProgramEntryPointSymbol : SourceMemberMethodSymbol
68 references to SourceMemberMethodSymbol
Microsoft.CodeAnalysis.CSharp (68)
Binder\Binder.CapturedParametersFinder.cs (2)
47foreach (SourceMemberMethodSymbol sourceMethod in containingType.GetMethodsPossiblyCapturingPrimaryConstructorParameters()) 100void getBodyBinderAndSyntax(SourceMemberMethodSymbol sourceMethod, out Binder? bodyBinder, out CSharpSyntaxNode? syntaxNode)
Binder\Binder_Statements.cs (2)
3813SourceMemberMethodSymbol? sourceConstructor = constructor as SourceMemberMethodSymbol;
Binder\BinderFactory.BinderFactoryVisitor.cs (6)
173SourceMemberMethodSymbol method = null; 216var method = GetMethodSymbol(parent, resultBinder); 251SourceMemberMethodSymbol method = GetMethodSymbol(parent, resultBinder); 507private SourceMemberMethodSymbol GetMethodSymbol(BaseMethodDeclarationSyntax baseMethodDeclarationSyntax, Binder outerBinder) 511return (SourceMemberMethodSymbol)_memberOpt; 521return (SourceMemberMethodSymbol)GetMemberSymbol(methodName, baseMethodDeclarationSyntax.FullSpan, container, SymbolKind.Method);
Binder\ExecutableCodeBinder.cs (1)
129if (((iterator as SourceMemberMethodSymbol)?.IsUnsafe == true || (iterator as LocalFunctionSymbol)?.IsUnsafe == true)
Binder\RefSafetyAnalysis.cs (1)
38if (symbol is SourceMemberMethodSymbol { IsUnsafe: true })
CodeGen\CodeGenerator.cs (2)
149var sourceMethod = method as SourceMemberMethodSymbol;
Compilation\SyntaxTreeSemanticModel.cs (7)
1086var symbol = GetDeclaredSymbol(memberDecl).GetSymbol<SourceMemberMethodSymbol>(); 1110var symbol = GetDeclaredSymbol(accessorDecl).GetSymbol<SourceMemberMethodSymbol>(); 1182SourceMemberMethodSymbol symbol = null; 1188symbol = GetDeclaredSymbol(exprDecl).GetSymbol<SourceMemberMethodSymbol>(); 1241MemberSemanticModel createMethodBodySemanticModel(CSharpSyntaxNode memberDecl, SourceMemberMethodSymbol symbol)
Compiler\MethodBodySynthesizer.cs (1)
174internal static BoundBlock ConstructAutoPropertyAccessorBody(SourceMemberMethodSymbol accessor)
Compiler\MethodCompiler.cs (3)
893SourceMemberMethodSymbol sourceMethod = methodSymbol as SourceMemberMethodSymbol; 1755if (method is SourceMemberMethodSymbol sourceMethod)
FlowAnalysis\FlowAnalysisPass.cs (1)
59Debug.Assert(method is not SourceMemberMethodSymbol { SyntaxNode: ConstructorDeclarationSyntax { Initializer: not null } } || block.HasErrors);
FlowAnalysis\NullableWalker.cs (1)
872if (method is SourceMemberMethodSymbol { SyntaxNode: ConstructorDeclarationSyntax { Initializer: { RawKind: var initializerKind } } })
Lowering\InitializerRewriter.cs (2)
24var sourceMethod = method as SourceMemberMethodSymbol;
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
170if (method is SourceMemberMethodSymbol { Bodies: { arrowBody: null, blockBody: null } } and not SynthesizedSimpleProgramEntryPointSymbol)
Lowering\Instrumentation\ModuleCancellationInstrumenter.cs (1)
52method is SourceMemberMethodSymbol { Bodies: { arrowBody: null, blockBody: null } } and not SynthesizedSimpleProgramEntryPointSymbol))
Lowering\Instrumentation\StackOverflowProbingInstrumenter.cs (1)
42method is SourceMemberMethodSymbol { Bodies: { arrowBody: null, blockBody: null } } and not SynthesizedSimpleProgramEntryPointSymbol))
Lowering\LocalRewriter\LocalRewriter_ReturnStatement.cs (1)
48(method as SourceMemberMethodSymbol)?.IsExpressionBodied ??
Symbols\MemberSymbolExtensions.cs (2)
377SourceMemberMethodSymbol sourceMethod = method as SourceMemberMethodSymbol;
Symbols\Source\SourceComplexParameterSymbol.cs (2)
475SourceMemberMethodSymbol { PartialImplementationPart.Parameters: { } parameters } => parameters, 496SourceMemberMethodSymbol { PartialDefinitionPart.Parameters: { } parameters } => parameters,
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
413protected override SourceMemberMethodSymbol BoundAttributesSource => _invoke;
Symbols\Source\SourceMemberContainerSymbol.cs (13)
1948var methodsBySignature = new Dictionary<SourceMemberMethodSymbol, SourceMemberMethodSymbol>(MemberSignatureComparer.DuplicateSourceComparer); 1949var conversionsAsMethods = new Dictionary<SourceMemberMethodSymbol, SourceMemberMethodSymbol>(MemberSignatureComparer.DuplicateSourceComparer); 2064var method = symbol as SourceMemberMethodSymbol; 2090if (methodsBySignature.TryGetValue(conversion, out var previousMethod)) 2102if (conversionsAsMethods.TryGetValue(method, out var previousConversion)) 2111if (methodsBySignature.TryGetValue(method, out var previousMethod)) 2128private void ReportMethodSignatureCollision(BindingDiagnosticBag diagnostics, SourceMemberMethodSymbol method1, SourceMemberMethodSymbol method2) 3356internal IEnumerable<SourceMemberMethodSymbol> GetMethodsPossiblyCapturingPrimaryConstructorParameters() 3385!(member is MethodSymbol method && MethodCompiler.GetMethodToCompile(method) is SourceMemberMethodSymbol sourceMethod))
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (3)
544var sourceMethod = method as SourceMemberMethodSymbol; 1835if (implementingMethodOriginalDefinition is SourceMemberMethodSymbol sourceImplementMethodOriginalDefinition)
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
122protected virtual SourceMemberMethodSymbol BoundAttributesSource 277var copyFrom = this.BoundAttributesSource;
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
386protected sealed override SourceMemberMethodSymbol BoundAttributesSource
Symbols\Source\SourceOrdinaryMethodSymbolBase.cs (1)
91protected abstract override SourceMemberMethodSymbol BoundAttributesSource { get; }
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
832protected sealed override SourceMemberMethodSymbol? BoundAttributesSource => (SourceMemberMethodSymbol?)PartialDefinitionPart;
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperatorBase.cs (1)
52protected sealed override SourceMemberMethodSymbol? BoundAttributesSource => null;
Symbols\Synthesized\Records\SynthesizedRecordOrdinaryMethod.cs (1)
84protected sealed override SourceMemberMethodSymbol? BoundAttributesSource => null;
Symbols\Synthesized\SynthesizedAccessorValueParameterSymbol.cs (4)
22public SynthesizedAccessorValueParameterSymbol(SourceMemberMethodSymbol accessor, int ordinal) 70get { return (SourceMemberMethodSymbol)this.ContainingSymbol; } 76var accessor = (SourceMemberMethodSymbol)this.ContainingSymbol;
Symbols\Synthesized\SynthesizedEventAccessorSymbol.cs (2)
49protected override SourceMemberMethodSymbol BoundAttributesSource 54? (SourceMemberMethodSymbol)this.AssociatedEvent.RemoveMethod