10 overrides of GetMethod
Microsoft.CodeAnalysis.CSharp (10)
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.cs (1)
71
public override MethodSymbol
GetMethod
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertySymbol.cs (1)
194
public override MethodSymbol
GetMethod
Symbols\ErrorPropertySymbol.cs (1)
57
public override MethodSymbol
GetMethod
{ get { return null; } }
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
695
public override MethodSymbol
GetMethod
Symbols\NativeIntegerTypeSymbol.cs (1)
476
public override MethodSymbol?
GetMethod
{ get; }
Symbols\Retargeting\RetargetingPropertySymbol.cs (1)
123
public override MethodSymbol
GetMethod
Symbols\SignatureOnlyPropertySymbol.cs (1)
102
public override MethodSymbol
GetMethod
{ get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\SourcePropertySymbolBase.cs (1)
621
public sealed override MethodSymbol?
GetMethod
Symbols\SubstitutedPropertySymbol.cs (1)
86
public override MethodSymbol
GetMethod
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListProperty.cs (1)
43
public override MethodSymbol?
GetMethod
{ get; }
70 references to GetMethod
Microsoft.CodeAnalysis.CSharp (70)
Binder\Binder_Attributes.cs (1)
639
var getMethod = propertySymbol.
GetMethod
;
Binder\Binder_Invocation.cs (1)
1323
var method = property.
GetMethod
?? property.SetMethod;
Binder\Binder_Lookup.cs (1)
1552
method1 = property.
GetMethod
;
Emitter\Model\PropertySymbolAdapter.cs (2)
35
var getMethod = AdaptedPropertySymbol.
GetMethod
?.GetCciAdapter();
72
MethodSymbol getMethod = AdaptedPropertySymbol.
GetMethod
;
Emitter\NoPia\EmbeddedTypesManager.cs (1)
537
var getMethod = property.AdaptedPropertySymbol.
GetMethod
?.GetCciAdapter();
FlowAnalysis\AbstractFlowPass.cs (1)
3688
property.GetOwnOrInheritedSetMethod() ?? property.
GetMethod
;
FlowAnalysis\NullableWalker.cs (2)
10673
ApplyMemberPostConditions(node.ReceiverOpt, property.
GetMethod
);
10807
var getMethod = ((PropertySymbol)member.OriginalDefinition).
GetMethod
;
FlowAnalysis\NullableWalker_Patterns.cs (2)
545
if (property.
GetMethod
is not null)
548
ApplyMemberPostConditions(inputSlot, property.
GetMethod
);
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (1)
361
MethodSymbol isCompletedMethod = ((object)node.AwaitableInfo.IsCompleted != null) ? VisitMethodSymbol(node.AwaitableInfo.IsCompleted.
GetMethod
) : null;
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
1070
membersBuilder.Add(_bound.MethodInfo(AnonymousTypeManager.GetAnonymousTypeProperty(anonType, i).
GetMethod
, _bound.WellKnownType(WellKnownType.System_Reflection_MethodInfo)));
Lowering\IteratorRewriter\IteratorRewriter.cs (3)
159
var getter = symbol.
GetMethod
;
216
var IEnumerator_get_Current = F.SpecialProperty(SpecialMember.System_Collections_IEnumerator__Current).
GetMethod
;
219
var IEnumeratorOfElementType_get_Current = F.SpecialProperty(SpecialMember.System_Collections_Generic_IEnumerator_T__Current).
GetMethod
.AsMember(IEnumeratorOfElementType);
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (2)
182
MethodMayMutateReceiver(node.ReceiverOpt, node.PropertySymbol.
GetMethod
);
316
MethodMayMutateReceiver(node.ReceiverOpt, node.Indexer.
GetMethod
);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (3)
242
Debug.Assert(e.Property.
GetMethod
.ParameterCount == 1);
243
Debug.Assert(e.Property.
GetMethod
.Parameters[0].Type.SpecialType == SpecialType.System_Int32);
244
TypeSymbol type = e.Property.
GetMethod
.ReturnType;
Lowering\LocalRewriter\LocalRewriter_Event.cs (1)
271
MethodSymbol invocationListAccessor = invocationListProperty.
GetMethod
;
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
389
MethodSymbol currentManagedThreadIdMethod = currentManagedThreadIdProperty.
GetMethod
;
Symbols\MemberSymbolExtensions.cs (1)
135
return isImplementableAndNotPublic(propertySymbol.
GetMethod
) || isImplementableAndNotPublic(propertySymbol.SetMethod);
Symbols\Metadata\PE\PEPropertySymbol.cs (2)
488
MethodSymbol getMethod = curr.
GetMethod
;
813
if (!prop.
GetMethod
.IsImplementable())
Symbols\NativeIntegerTypeSymbol.cs (1)
463
GetMethod = getAccessor(container, this, underlyingProperty.
GetMethod
);
Symbols\OverriddenOrHiddenMembersHelpers.cs (1)
260
MethodSymbol correspondingAccessor = accessorIsGetter ? propertyHiddenByProperty.
GetMethod
: propertyHiddenByProperty.SetMethod;
Symbols\PropertySymbol.cs (2)
182
return (object)property.
GetMethod
== null;
257
MethodSymbol accessor =
GetMethod
?? SetMethod;
Symbols\PropertySymbolExtensions.cs (1)
26
MethodSymbol getMethod = property.
GetMethod
;
Symbols\PublicModel\PropertySymbol.cs (1)
53
get { return _underlying.
GetMethod
.GetPublicSymbol(); }
Symbols\Retargeting\RetargetingPropertySymbol.cs (2)
127
return (object)_underlyingProperty.
GetMethod
== null
129
: this.RetargetingTranslator.Retarget(_underlyingProperty.
GetMethod
);
Symbols\Source\ExplicitInterfaceHelpers.cs (1)
318
checkAccessorIsAccessibleIfImplementable(propertySymbol.
GetMethod
);
Symbols\Source\SourceMemberContainerSymbol.cs (6)
3839
MethodSymbol accessor = getNotSet ? propertySymbol.
GetMethod
: propertySymbol.SetMethod;
3917
var locationFrom = (Symbol)(getNotSet ? propertySymbol.
GetMethod
: propertySymbol.SetMethod) ?? propertySymbol;
4271
Debug.Assert(isRecordClass || !members.Any(m => m is PropertySymbol {
GetMethod
.IsEffectivelyReadOnly: false }));
4554
else if (existingMember is PropertySymbol { IsStatic: false,
GetMethod
: { } } prop
4664
members.Add(equalityContract.
GetMethod
);
4694
if (equalityContract.
GetMethod
is null)
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (7)
571
var getMethod = property.
GetMethod
;
817
else if (associatedProperty.
GetMethod
== overridingMember && (object)overriddenProperty.
GetMethod
== null)
1095
if (overridingProperty.
GetMethod
is object)
1099
overridingProperty.
GetMethod
.GetFirstLocation(),
1101
overridingProperty.
GetMethod
,
1130
if (overridingProperty.
GetMethod
!= ownOrInheritedGetMethod && !AccessCheck.IsSymbolAccessible(ownOrInheritedGetMethod, overridingType, ref useSiteInfo))
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
618
? explicitlyImplementedPropertyOpt.
GetMethod
687
? explicitlyImplementedPropertyOpt.
GetMethod
Symbols\Source\SourcePropertySymbolBase.cs (2)
898
if ((overriddenProperty.
GetMethod
is { } && GetMethod is null) ||
997
CheckExplicitImplementationAccessor(GetMethod, explicitlyImplementedProperty.
GetMethod
, explicitlyImplementedProperty, diagnostics);
Symbols\SubstitutedPropertySymbol.cs (1)
90
MethodSymbol originalGetMethod = OriginalDefinition.
GetMethod
;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (2)
114
Debug.Assert(property is {
GetMethod
: not null, SetMethod: null });
116
builder.Add(property.
GetMethod
);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListProperty.cs (1)
27
GetMethod = new SynthesizedReadOnlyListMethod(containingType, interfaceProperty.
GetMethod
, getAccessorBody);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
731
builder.AddIfNotNull(property.
GetMethod
);
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (3)
26
Debug.Assert(positionalMembers.All(p => p is PropertySymbol {
GetMethod
: not null } or FieldSymbol));
107
var getterMethod = property.
GetMethod
;
108
return property.
GetMethod
is not null && !getterMethod.IsEffectivelyReadOnly;
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
70
if (_equalityContract.
GetMethod
is null)
Symbols\Synthesized\Records\SynthesizedRecordGetHashCode.cs (1)
57
if (_equalityContract.
GetMethod
is null)
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (3)
314
var getterMethod = property.
GetMethod
;
315
if (property.
GetMethod
is not null && !getterMethod.IsEffectivelyReadOnly)
331
return !property.IsIndexer && !property.IsOverride && property.
GetMethod
is not null;
Symbols\TypeSymbol.cs (3)
1406
interfaceAccessor1 = interfaceProperty.
GetMethod
;
1914
var implementingGetMethod = implementedProperty.
GetMethod
.IsImplementable() ?
1924
implementedProperty.
GetMethod
,
Symbols\VarianceSafety.cs (2)
192
bool hasGetter = (object)property.
GetMethod
!= null;
199
requireInputSafety: hasSetter || !(property.
GetMethod
?.RefKind == RefKind.None),