27 references to GetOwnOrInheritedGetMethod
Microsoft.CodeAnalysis.CSharp (27)
Binder\Binder.ValueChecks.cs (5)
72property.GetOwnOrInheritedGetMethod() ?? property.GetOwnOrInheritedSetMethod(), 79AccessorKind.Get => new MethodInfo(property, property.GetOwnOrInheritedGetMethod(), setMethod: null), 81AccessorKind.Both => new MethodInfo(property, property.GetOwnOrInheritedGetMethod(), property.GetOwnOrInheritedSetMethod()), 412: indexerAccess.Indexer.GetOwnOrInheritedGetMethod(); 1816var getMethod = propertySymbol.GetOwnOrInheritedGetMethod();
Binder\Binder_Expressions.cs (1)
10196property.GetOwnOrInheritedGetMethod()?.OriginalDefinition is MethodSymbol getMethod &&
Binder\ForEachLoopBinder.cs (1)
1655MethodSymbol currentPropertyGetterCandidate = ((PropertySymbol)lookupSymbol).GetOwnOrInheritedGetMethod();
FlowAnalysis\AbstractFlowPass.cs (2)
3685property.GetOwnOrInheritedGetMethod() ?? property.SetMethod; 3711var readMethod = property.GetOwnOrInheritedGetMethod();
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
931return _bound.MethodInfo(((PropertySymbol)symbol).GetOwnOrInheritedGetMethod(), _bound.WellKnownType(WellKnownType.System_Reflection_MethodInfo)); 1104var getMethod = node.PropertySymbol.GetOwnOrInheritedGetMethod();
Lowering\DiagnosticsPass_ExpressionTrees.cs (2)
315(method == propertyAccess.GetOwnOrInheritedGetMethod()) || 529var method = indexer.GetOwnOrInheritedGetMethod() ?? indexer.GetOwnOrInheritedSetMethod();
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (1)
365var accessor = indexer.GetOwnOrInheritedGetMethod() ?? indexer.GetOwnOrInheritedSetMethod();
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (2)
71Debug.Assert((object?)node.Indexer.GetOwnOrInheritedGetMethod() != null); 156var getMethod = indexer.GetOwnOrInheritedGetMethod();
Lowering\LocalRewriter\LocalRewriter_PropertyAccess.cs (1)
91var getMethod = getMethodOpt ?? property.GetOwnOrInheritedGetMethod();
Lowering\SyntheticBoundNodeFactory.cs (2)
275var accessor = property.GetOwnOrInheritedGetMethod(); 283var accessor = property.GetOwnOrInheritedGetMethod();
Operations\CSharpOperationFactory.cs (1)
885? property.GetOwnOrInheritedGetMethod()
Symbols\OverriddenOrHiddenMembersHelpers.cs (1)
273propertyOverriddenByProperty.GetOwnOrInheritedGetMethod() :
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (2)
1097MethodSymbol overriddenGetMethod = overriddenProperty.GetOwnOrInheritedGetMethod(); 1128MethodSymbol ownOrInheritedGetMethod = overridingProperty.GetOwnOrInheritedGetMethod();
Symbols\Source\SourcePropertySymbolBase.cs (1)
1240MethodSymbol overriddenAccessor = this.GetOwnOrInheritedGetMethod();
Symbols\SymbolExtensions.cs (1)
452var annotations = property.GetOwnOrInheritedGetMethod()?.ReturnTypeFlowAnalysisAnnotations ?? FlowAnalysisAnnotations.None;
Symbols\TypeSymbol.cs (2)
1564correspondingImplementingAccessor = ((PropertySymbol)implementingPropertyOrEvent).GetOwnOrInheritedGetMethod(); 1915implementingProperty.GetOwnOrInheritedGetMethod() :