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
61 references to SourceMemberMethodSymbol
Microsoft.CodeAnalysis.CSharp (61)
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)
3834SourceMemberMethodSymbol? 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)
136if (((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)
1088var symbol = GetDeclaredSymbol(memberDecl).GetSymbol<SourceMemberMethodSymbol>(); 1113var symbol = GetDeclaredSymbol(accessorDecl).GetSymbol<SourceMemberMethodSymbol>(); 1185SourceMemberMethodSymbol symbol = null; 1191symbol = GetDeclaredSymbol(exprDecl).GetSymbol<SourceMemberMethodSymbol>(); 1244MemberSemanticModel createMethodBodySemanticModel(CSharpSyntaxNode memberDecl, SourceMemberMethodSymbol symbol)
Compiler\MethodBodySynthesizer.cs (1)
174internal static BoundBlock ConstructAutoPropertyAccessorBody(SourceMemberMethodSymbol accessor)
Compiler\MethodCompiler.cs (3)
918SourceMemberMethodSymbol sourceMethod = methodSymbol as SourceMemberMethodSymbol; 1855if (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)
882if (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)
549SourceMemberMethodSymbol sourceMethod = method as SourceMemberMethodSymbol;
Symbols\Source\SourceConstructorSymbol.cs (1)
230protected override SourceMemberMethodSymbol? BoundAttributesSource => SourcePartialDefinitionPart;
Symbols\Source\SourceCustomEventAccessorSymbol.cs (2)
81protected override SourceMemberMethodSymbol? BoundAttributesSource => (SourceMemberMethodSymbol?)PartialDefinitionPart;
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
413protected override SourceMemberMethodSymbol BoundAttributesSource => _invoke;
Symbols\Source\SourceEventAccessorSymbol.cs (1)
238protected abstract override SourceMemberMethodSymbol? BoundAttributesSource { get; }
Symbols\Source\SourceFieldLikeEventSymbol.cs (2)
257protected override SourceMemberMethodSymbol? BoundAttributesSource 262? (SourceMemberMethodSymbol?)this.AssociatedEvent.RemoveMethod
Symbols\Source\SourceMemberContainerSymbol.cs (1)
2173if (method1.OriginalDefinition is SourceMemberMethodSymbol { MethodKind: MethodKind.Constructor } constructor &&
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (3)
545var sourceMethod = method as SourceMemberMethodSymbol; 1848if (implementingMethodOriginalDefinition is SourceMemberMethodSymbol sourceImplementMethodOriginalDefinition)
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
122protected virtual SourceMemberMethodSymbol BoundAttributesSource 277var copyFrom = this.BoundAttributesSource;
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
391protected sealed override SourceMemberMethodSymbol BoundAttributesSource
Symbols\Source\SourceOrdinaryMethodSymbolBase.cs (1)
91protected abstract override SourceMemberMethodSymbol BoundAttributesSource { get; }
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
812protected sealed override SourceMemberMethodSymbol? BoundAttributesSource => (SourceMemberMethodSymbol?)PartialDefinitionPart;
Symbols\Source\SynthesizedSourceOrdinaryMethodSymbol.cs (1)
65protected sealed override SourceMemberMethodSymbol? BoundAttributesSource => null;
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperatorBase.cs (1)
52protected 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 (3)
49protected override SourceMemberMethodSymbol BoundAttributesSource 57return (SourceMemberMethodSymbol)definitionPart; 61? (SourceMemberMethodSymbol)this.AssociatedEvent.RemoveMethod