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)
482public 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)
644public sealed override MethodSymbol? GetMethod
Symbols\SubstitutedPropertySymbol.cs (1)
86public override MethodSymbol GetMethod
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListProperty.cs (1)
43public override MethodSymbol? GetMethod { get; }
64 references to GetMethod
Microsoft.CodeAnalysis.CSharp (64)
Binder\Binder_Attributes.cs (1)
639var getMethod = propertySymbol.GetMethod;
Binder\Binder_Invocation.cs (1)
1379var method = property.GetMethod ?? property.SetMethod;
Binder\Binder_Lookup.cs (1)
1638method1 = 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)
3704property.GetOwnOrInheritedSetMethod() ?? property.GetMethod;
FlowAnalysis\NullableWalker.cs (2)
10854ApplyMemberPostConditions(node.ReceiverOpt, property.GetMethod); 10988var 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)
307return isImplementableAndNotPublic(propertySymbol.GetMethod) || isImplementableAndNotPublic(propertySymbol.SetMethod);
Symbols\Metadata\PE\PEPropertySymbol.cs (2)
488MethodSymbol getMethod = curr.GetMethod; 813if (!prop.GetMethod.IsImplementable())
Symbols\NativeIntegerTypeSymbol.cs (1)
469GetMethod = 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_ImplementationChecks.cs (7)
572var getMethod = property.GetMethod; 818else if (associatedProperty.GetMethod == overridingMember && (object)overriddenProperty.GetMethod == null) 1096if (overridingProperty.GetMethod is object) 1100overridingProperty.GetMethod.GetFirstLocation(), 1102overridingProperty.GetMethod, 1131if (overridingProperty.GetMethod != ownOrInheritedGetMethod && !AccessCheck.IsSymbolAccessible(ownOrInheritedGetMethod, overridingType, ref useSiteInfo))
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
622? explicitlyImplementedPropertyOpt.GetMethod 694? explicitlyImplementedPropertyOpt.GetMethod
Symbols\Source\SourcePropertySymbolBase.cs (2)
913if ((overriddenProperty.GetMethod is { } && GetMethod is null) || 1012CheckExplicitImplementationAccessor(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)
1416interfaceAccessor1 = interfaceProperty.GetMethod; 1924var implementingGetMethod = implementedProperty.GetMethod.IsImplementable() ? 1934implementedProperty.GetMethod,
Symbols\VarianceSafety.cs (2)
192bool hasGetter = (object)property.GetMethod != null; 199requireInputSafety: hasSetter || !(property.GetMethod?.RefKind == RefKind.None),