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