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()),
418
: indexerAccess.Indexer.
GetOwnOrInheritedGetMethod
();
1823
var getMethod = propertySymbol.
GetOwnOrInheritedGetMethod
();
Binder\Binder_Expressions.cs (1)
10577
property.
GetOwnOrInheritedGetMethod
()?.OriginalDefinition is MethodSymbol getMethod &&
Binder\ForEachLoopBinder.cs (1)
1702
MethodSymbol currentPropertyGetterCandidate = ((PropertySymbol)lookupSymbol).
GetOwnOrInheritedGetMethod
();
FlowAnalysis\AbstractFlowPass.cs (2)
3701
property.
GetOwnOrInheritedGetMethod
() ?? property.SetMethod;
3727
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)
316
(method == propertyAccess.
GetOwnOrInheritedGetMethod
()) ||
566
var method = indexer.
GetOwnOrInheritedGetMethod
() ?? indexer.GetOwnOrInheritedSetMethod();
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (1)
378
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)
283
var accessor = property.
GetOwnOrInheritedGetMethod
();
291
var accessor = property.
GetOwnOrInheritedGetMethod
();
Operations\CSharpOperationFactory.cs (1)
885
? property.
GetOwnOrInheritedGetMethod
()
Symbols\OverriddenOrHiddenMembersHelpers.cs (1)
273
propertyOverriddenByProperty.
GetOwnOrInheritedGetMethod
() :
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (2)
1098
MethodSymbol overriddenGetMethod = overriddenProperty.
GetOwnOrInheritedGetMethod
();
1129
MethodSymbol ownOrInheritedGetMethod = overridingProperty.
GetOwnOrInheritedGetMethod
();
Symbols\Source\SourcePropertySymbolBase.cs (1)
1259
MethodSymbol overriddenAccessor = this.
GetOwnOrInheritedGetMethod
();
Symbols\SymbolExtensions.cs (1)
439
var annotations = property.
GetOwnOrInheritedGetMethod
()?.ReturnTypeFlowAnalysisAnnotations ?? FlowAnalysisAnnotations.None;
Symbols\TypeSymbol.cs (2)
1574
correspondingImplementingAccessor = ((PropertySymbol)implementingPropertyOrEvent).
GetOwnOrInheritedGetMethod
();
1925
implementingProperty.
GetOwnOrInheritedGetMethod
() :