10 overrides of GetMethod
Microsoft.CodeAnalysis.CSharp (10)
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.cs (1)
71public override MethodSymbol GetMethod
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertySymbol.cs (1)
194public override MethodSymbol GetMethod
Symbols\ErrorPropertySymbol.cs (1)
57public override MethodSymbol GetMethod { get { return null; } }
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
695public override MethodSymbol GetMethod
Symbols\NativeIntegerTypeSymbol.cs (1)
476public 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)
621public sealed override MethodSymbol? GetMethod
Symbols\SubstitutedPropertySymbol.cs (1)
86public override MethodSymbol GetMethod
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListProperty.cs (1)
43public override MethodSymbol? GetMethod { get; }
70 references to GetMethod
Microsoft.CodeAnalysis.CSharp (70)
Binder\Binder_Attributes.cs (1)
639var getMethod = propertySymbol.GetMethod;
Binder\Binder_Invocation.cs (1)
1323var method = property.GetMethod ?? property.SetMethod;
Binder\Binder_Lookup.cs (1)
1552method1 = property.GetMethod;
Emitter\Model\PropertySymbolAdapter.cs (2)
35var getMethod = AdaptedPropertySymbol.GetMethod?.GetCciAdapter(); 72MethodSymbol getMethod = AdaptedPropertySymbol.GetMethod;
Emitter\NoPia\EmbeddedTypesManager.cs (1)
537var getMethod = property.AdaptedPropertySymbol.GetMethod?.GetCciAdapter();
FlowAnalysis\AbstractFlowPass.cs (1)
3688property.GetOwnOrInheritedSetMethod() ?? property.GetMethod;
FlowAnalysis\NullableWalker.cs (2)
10673ApplyMemberPostConditions(node.ReceiverOpt, property.GetMethod); 10807var getMethod = ((PropertySymbol)member.OriginalDefinition).GetMethod;
FlowAnalysis\NullableWalker_Patterns.cs (2)
545if (property.GetMethod is not null) 548ApplyMemberPostConditions(inputSlot, property.GetMethod);
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (1)
361MethodSymbol isCompletedMethod = ((object)node.AwaitableInfo.IsCompleted != null) ? VisitMethodSymbol(node.AwaitableInfo.IsCompleted.GetMethod) : null;
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
1070membersBuilder.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)
242Debug.Assert(e.Property.GetMethod.ParameterCount == 1); 243Debug.Assert(e.Property.GetMethod.Parameters[0].Type.SpecialType == SpecialType.System_Int32); 244TypeSymbol type = e.Property.GetMethod.ReturnType;
Lowering\LocalRewriter\LocalRewriter_Event.cs (1)
271MethodSymbol invocationListAccessor = invocationListProperty.GetMethod;
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
389MethodSymbol currentManagedThreadIdMethod = currentManagedThreadIdProperty.GetMethod;
Symbols\MemberSymbolExtensions.cs (1)
135return isImplementableAndNotPublic(propertySymbol.GetMethod) || isImplementableAndNotPublic(propertySymbol.SetMethod);
Symbols\Metadata\PE\PEPropertySymbol.cs (2)
488MethodSymbol getMethod = curr.GetMethod; 813if (!prop.GetMethod.IsImplementable())
Symbols\NativeIntegerTypeSymbol.cs (1)
463GetMethod = getAccessor(container, this, underlyingProperty.GetMethod);
Symbols\OverriddenOrHiddenMembersHelpers.cs (1)
260MethodSymbol correspondingAccessor = accessorIsGetter ? propertyHiddenByProperty.GetMethod : propertyHiddenByProperty.SetMethod;
Symbols\PropertySymbol.cs (2)
182return (object)property.GetMethod == null; 257MethodSymbol 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)
318checkAccessorIsAccessibleIfImplementable(propertySymbol.GetMethod);
Symbols\Source\SourceMemberContainerSymbol.cs (6)
3839MethodSymbol accessor = getNotSet ? propertySymbol.GetMethod : propertySymbol.SetMethod; 3917var locationFrom = (Symbol)(getNotSet ? propertySymbol.GetMethod : propertySymbol.SetMethod) ?? propertySymbol; 4271Debug.Assert(isRecordClass || !members.Any(m => m is PropertySymbol { GetMethod.IsEffectivelyReadOnly: false })); 4554else if (existingMember is PropertySymbol { IsStatic: false, GetMethod: { } } prop 4664members.Add(equalityContract.GetMethod); 4694if (equalityContract.GetMethod is null)
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (7)
571var getMethod = property.GetMethod; 817else if (associatedProperty.GetMethod == overridingMember && (object)overriddenProperty.GetMethod == null) 1095if (overridingProperty.GetMethod is object) 1099overridingProperty.GetMethod.GetFirstLocation(), 1101overridingProperty.GetMethod, 1130if (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)
898if ((overriddenProperty.GetMethod is { } && GetMethod is null) || 997CheckExplicitImplementationAccessor(GetMethod, explicitlyImplementedProperty.GetMethod, explicitlyImplementedProperty, diagnostics);
Symbols\SubstitutedPropertySymbol.cs (1)
90MethodSymbol originalGetMethod = OriginalDefinition.GetMethod;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (2)
114Debug.Assert(property is { GetMethod: not null, SetMethod: null }); 116builder.Add(property.GetMethod);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListProperty.cs (1)
27GetMethod = new SynthesizedReadOnlyListMethod(containingType, interfaceProperty.GetMethod, getAccessorBody);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
731builder.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)
314var getterMethod = property.GetMethod; 315if (property.GetMethod is not null && !getterMethod.IsEffectivelyReadOnly) 331return !property.IsIndexer && !property.IsOverride && property.GetMethod is not null;
Symbols\TypeSymbol.cs (3)
1406interfaceAccessor1 = interfaceProperty.GetMethod; 1914var implementingGetMethod = implementedProperty.GetMethod.IsImplementable() ? 1924implementedProperty.GetMethod,
Symbols\VarianceSafety.cs (2)
192bool hasGetter = (object)property.GetMethod != null; 199requireInputSafety: hasSetter || !(property.GetMethod?.RefKind == RefKind.None),