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