11 overrides of GetMethod
Microsoft.CodeAnalysis.CSharp (11)
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.cs (1)
71public override MethodSymbol GetMethod
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertySymbol.cs (1)
196public override MethodSymbol GetMethod
Symbols\ErrorPropertySymbol.cs (1)
57public override MethodSymbol GetMethod { get { return null; } }
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
757public override MethodSymbol GetMethod
Symbols\NativeIntegerTypeSymbol.cs (1)
523public override MethodSymbol? GetMethod { get; }
Symbols\Retargeting\RetargetingPropertySymbol.cs (1)
123public override MethodSymbol GetMethod
Symbols\SignatureOnlyPropertySymbol.cs (1)
102public override MethodSymbol GetMethod { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\SourcePropertySymbolBase.cs (1)
647public sealed override MethodSymbol? GetMethod
Symbols\SubstitutedPropertySymbol.cs (1)
86public override MethodSymbol GetMethod
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListProperty.cs (1)
43public override MethodSymbol? GetMethod { get; }
Symbols\Synthesized\SynthesizedEmbeddedAttributePropertySymbol.cs (1)
28public override MethodSymbol GetMethod { get; }
76 references to GetMethod
Microsoft.CodeAnalysis.CSharp (76)
Binder\Binder_Attributes.cs (1)
647var getMethod = propertySymbol.GetMethod;
Binder\Binder_Expressions.cs (2)
9309(propertySymbol.GetMethod is null || propertySymbol.GetMethod.CallerUnsafeMode == propertySymbol.CallerUnsafeMode) ||
Binder\Binder_Invocation.cs (1)
1388var method = property.GetMethod ?? property.SetMethod;
Binder\Binder_Lookup.cs (1)
1602method1 = property.GetMethod;
Binder\Binder_Patterns.cs (2)
97GetMethod: not null, 215GetMethod: not null,
Emitter\Model\PropertySymbolAdapter.cs (2)
35var getMethod = AdaptedPropertySymbol.GetMethod?.GetCciAdapter(); 72MethodSymbol getMethod = AdaptedPropertySymbol.GetMethod;
Emitter\NoPia\EmbeddedTypesManager.cs (1)
589var getMethod = property.AdaptedPropertySymbol.GetMethod?.GetCciAdapter();
FlowAnalysis\AbstractFlowPass.cs (1)
3736property.GetOwnOrInheritedSetMethod() ?? property.GetMethod;
FlowAnalysis\NullableWalker.cs (2)
12161ApplyMemberPostConditions(node.ReceiverOpt, property.GetMethod); 12322var getMethod = ((PropertySymbol)member.OriginalDefinition).GetMethod;
FlowAnalysis\NullableWalker_Patterns.cs (2)
484if (property.GetMethod is not null) 487ApplyMemberPostConditions(inputType, inputSlot, property.GetMethod);
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (1)
367MethodSymbol isCompletedMethod = ((object)node.AwaitableInfo.IsCompleted != null) ? VisitMethodSymbol(node.AwaitableInfo.IsCompleted.GetMethod) : null;
Lowering\AsyncRewriter\RuntimeAsyncRewriter.cs (1)
201var isCompletedMethod = awaitableInfo.IsCompleted.GetMethod;
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
1122membersBuilder.Add(_bound.MethodInfo(AnonymousTypeManager.GetAnonymousTypeProperty(anonType, i).GetMethod, _bound.WellKnownType(WellKnownType.System_Reflection_MethodInfo)));
Lowering\IteratorRewriter\IteratorRewriter.cs (3)
159var getter = symbol.GetMethod; 216var IEnumerator_get_Current = F.SpecialProperty(SpecialMember.System_Collections_IEnumerator__Current).GetMethod; 219var IEnumeratorOfElementType_get_Current = F.SpecialProperty(SpecialMember.System_Collections_Generic_IEnumerator_T__Current).GetMethod.AsMember(IEnumeratorOfElementType);
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (2)
182MethodMayMutateReceiver(node.ReceiverOpt, node.PropertySymbol.GetMethod); 316MethodMayMutateReceiver(node.ReceiverOpt, node.Indexer.GetMethod);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (3)
261Debug.Assert(e.Property.GetMethod.ParameterCount == 1); 262Debug.Assert(e.Property.GetMethod.Parameters[0].Type.SpecialType == SpecialType.System_Int32); 263TypeSymbol type = e.Property.GetMethod.ReturnType;
Lowering\LocalRewriter\LocalRewriter_Event.cs (1)
271MethodSymbol invocationListAccessor = invocationListProperty.GetMethod;
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
393MethodSymbol currentManagedThreadIdMethod = currentManagedThreadIdProperty.GetMethod;
Symbols\MemberSymbolExtensions.cs (1)
381return isImplementableAndNotPublic(propertySymbol.GetMethod) || isImplementableAndNotPublic(propertySymbol.SetMethod);
Symbols\Metadata\PE\PEPropertySymbol.cs (2)
511MethodSymbol getMethod = curr.GetMethod; 909if (!prop.GetMethod.IsImplementable())
Symbols\NativeIntegerTypeSymbol.cs (1)
510GetMethod = getAccessor(container, this, underlyingProperty.GetMethod);
Symbols\OverriddenOrHiddenMembersHelpers.cs (1)
260MethodSymbol correspondingAccessor = accessorIsGetter ? propertyHiddenByProperty.GetMethod : propertyHiddenByProperty.SetMethod;
Symbols\PropertySymbol.cs (1)
255MethodSymbol accessor = GetMethod ?? SetMethod;
Symbols\PropertySymbolExtensions.cs (1)
26MethodSymbol getMethod = property.GetMethod;
Symbols\PublicModel\PropertySymbol.cs (1)
53get { return _underlying.GetMethod.GetPublicSymbol(); }
Symbols\Retargeting\RetargetingPropertySymbol.cs (2)
127return (object)_underlyingProperty.GetMethod == null 129: this.RetargetingTranslator.Retarget(_underlyingProperty.GetMethod);
Symbols\Source\ExplicitInterfaceHelpers.cs (1)
354checkAccessorIsAccessibleIfImplementable(propertySymbol.GetMethod);
Symbols\Source\SourceMemberContainerSymbol.cs (6)
4529MethodSymbol accessor = getNotSet ? propertySymbol.GetMethod : propertySymbol.SetMethod; 4610var locationFrom = (Symbol)(getNotSet ? propertySymbol.GetMethod : propertySymbol.SetMethod) ?? propertySymbol; 5124Debug.Assert(isRecordClass || !members.Any(m => m is PropertySymbol { GetMethod.IsEffectivelyReadOnly: false })); 5411else if (existingMember is PropertySymbol { IsStatic: false, GetMethod: { } } prop 5521members.Add(equalityContract.GetMethod); 5551if (equalityContract.GetMethod is null)
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (7)
587var getMethod = property.GetMethod; 833else if (associatedProperty.GetMethod == overridingMember && (object)overriddenProperty.GetMethod == null) 1123if (overridingProperty.GetMethod is object) 1127overridingProperty.GetMethod.GetFirstLocation(), 1129overridingProperty.GetMethod, 1158if (overridingProperty.GetMethod != ownOrInheritedGetMethod && !AccessCheck.IsSymbolAccessible(ownOrInheritedGetMethod, overridingType, ref useSiteInfo))
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
662? explicitlyImplementedPropertyOpt.GetMethod 734? explicitlyImplementedPropertyOpt.GetMethod
Symbols\Source\SourcePropertySymbolBase.cs (2)
921if ((overriddenProperty.GetMethod is { } && GetMethod is null) || 1020CheckExplicitImplementationAccessor(GetMethod, explicitlyImplementedProperty.GetMethod, explicitlyImplementedProperty, diagnostics);
Symbols\SubstitutedPropertySymbol.cs (1)
90MethodSymbol originalGetMethod = OriginalDefinition.GetMethod;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (2)
123Debug.Assert(property is { GetMethod: not null, SetMethod: null }); 125builder.Add(property.GetMethod);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListProperty.cs (1)
27GetMethod = new SynthesizedReadOnlyListMethod(containingType, interfaceProperty.GetMethod, getAccessorBody);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
773builder.AddIfNotNull(property.GetMethod);
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (3)
26Debug.Assert(positionalMembers.All(p => p is PropertySymbol { GetMethod: not null } or FieldSymbol)); 107var getterMethod = property.GetMethod; 108return property.GetMethod is not null && !getterMethod.IsEffectivelyReadOnly;
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
70if (_equalityContract.GetMethod is null)
Symbols\Synthesized\Records\SynthesizedRecordGetHashCode.cs (1)
57if (_equalityContract.GetMethod is null)
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (3)
332var getterMethod = property.GetMethod; 333if (property.GetMethod is not null && !getterMethod.IsEffectivelyReadOnly) 349return !property.IsIndexer && !property.IsOverride && property.GetMethod is not null;
Symbols\Synthesized\SynthesizedEmbeddedMemorySafetyRulesAttributeSymbol.cs (2)
103Debug.Assert(property.GetMethod is not null); 105builder.Add(selector(property.GetMethod));
Symbols\TypeSymbol.cs (3)
1416interfaceAccessor1 = interfaceProperty.GetMethod; 1941var implementingGetMethod = implementedProperty.GetMethod.IsImplementable() ? 1951implementedProperty.GetMethod,
Symbols\VarianceSafety.cs (2)
195bool hasGetter = (object)property.GetMethod != null; 202requireInputSafety: hasSetter || !(property.GetMethod?.RefKind == RefKind.None),