Base:
property
GetMethod
Microsoft.CodeAnalysis.CSharp.Symbols.PropertySymbol.GetMethod
24 references to GetMethod
Microsoft.CodeAnalysis.CSharp (24)
Binder\BinderFactory.BinderFactoryVisitor.cs (2)
292
accessor = (parent.Kind() == SyntaxKind.GetAccessorDeclaration) ? propertySymbol.
GetMethod
: propertySymbol.SetMethod;
418
var accessor = propertySymbol.
GetMethod
;
Symbols\Source\SourceMemberContainerSymbol.cs (8)
4321
mergeAccessors(nonTypeMembers, (SourcePropertyAccessorSymbol?)currentProperty.
GetMethod
, (SourcePropertyAccessorSymbol?)prevProperty.
GetMethod
);
4948
Debug.Assert(valueProperty.
GetMethod
is object);
4950
members.Add(valueProperty.
GetMethod
);
5438
Debug.Assert(property.
GetMethod
is object);
5440
members.Add(property.
GetMethod
);
5878
AddAccessorIfAvailable(builder.NonTypeMembersWithPartialImplementations, property.
GetMethod
);
5999
AddAccessorIfAvailable(builder.NonTypeMembersWithPartialImplementations, indexer.
GetMethod
);
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
859
? (MethodKind == MethodKind.PropertyGet ? other.
GetMethod
: other.SetMethod)
863
? (MethodKind == MethodKind.PropertyGet ? other.
GetMethod
: other.SetMethod)
Symbols\Source\SourcePropertySymbol.cs (2)
816
if (this.
GetMethod
is { } definitionGetAccessor && implementation.
GetMethod
is { } implementationGetAccessor)
Symbols\Source\SourcePropertySymbolBase.cs (8)
759
return
GetMethod
is null || HasAutoPropertyGet;
921
if ((overriddenProperty.GetMethod is { } &&
GetMethod
is null) ||
941
bool hasGetAccessor =
GetMethod
is object;
1020
CheckExplicitImplementationAccessor(
GetMethod
, explicitlyImplementedProperty.GetMethod, explicitlyImplementedProperty, diagnostics);
1259
bool hasGetter =
GetMethod
is object;
1282
Debug.Assert(this.IsSealed && (
GetMethod
is null || SetMethod is null));
1284
if (
GetMethod
is object)
1928
if (
GetMethod
is not null)
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (2)
181
if (_property.
GetMethod
is not SourcePropertyAccessorSymbol getAccessor)
183
Debug.Assert(_property.
GetMethod
is null);