Base:
property
GetMethod
Microsoft.CodeAnalysis.CSharp.Symbols.PropertySymbol.GetMethod
22 references to GetMethod
Microsoft.CodeAnalysis.CSharp (22)
Binder\BinderFactory.BinderFactoryVisitor.cs (2)
292
accessor = (parent.Kind() == SyntaxKind.GetAccessorDeclaration) ? propertySymbol.
GetMethod
: propertySymbol.SetMethod;
418
var accessor = propertySymbol.
GetMethod
;
Symbols\Source\SourceMemberContainerSymbol.cs (6)
4146
mergeAccessors(nonTypeMembers, (SourcePropertyAccessorSymbol?)currentProperty.
GetMethod
, (SourcePropertyAccessorSymbol?)prevProperty.
GetMethod
);
5168
Debug.Assert(property.
GetMethod
is object);
5170
members.Add(property.
GetMethod
);
5612
AddAccessorIfAvailable(builder.NonTypeMembersWithPartialImplementations, property.
GetMethod
);
5737
AddAccessorIfAvailable(builder.NonTypeMembersWithPartialImplementations, indexer.
GetMethod
);
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
819
? (MethodKind == MethodKind.PropertyGet ? other.
GetMethod
: other.SetMethod)
823
? (MethodKind == MethodKind.PropertyGet ? other.
GetMethod
: other.SetMethod)
Symbols\Source\SourcePropertySymbol.cs (2)
814
if (this.
GetMethod
is { } definitionGetAccessor && implementation.
GetMethod
is { } implementationGetAccessor)
Symbols\Source\SourcePropertySymbolBase.cs (8)
756
return
GetMethod
is null || HasAutoPropertyGet;
913
if ((overriddenProperty.GetMethod is { } &&
GetMethod
is null) ||
933
bool hasGetAccessor =
GetMethod
is object;
1012
CheckExplicitImplementationAccessor(
GetMethod
, explicitlyImplementedProperty.GetMethod, explicitlyImplementedProperty, diagnostics);
1225
bool hasGetter =
GetMethod
is object;
1248
Debug.Assert(this.IsSealed && (
GetMethod
is null || SetMethod is null));
1250
if (
GetMethod
is object)
1882
if (
GetMethod
is not null)
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (2)
167
if (_property.
GetMethod
is not SourcePropertyAccessorSymbol getAccessor)
169
Debug.Assert(_property.
GetMethod
is null);