Base:
property
GetMethod
Microsoft.CodeAnalysis.CSharp.Symbols.PropertySymbol.GetMethod
24 references to GetMethod
Microsoft.CodeAnalysis.CSharp (24)
Binder\BinderFactory.BinderFactoryVisitor.cs (2)
292accessor = (parent.Kind() == SyntaxKind.GetAccessorDeclaration) ? propertySymbol.GetMethod : propertySymbol.SetMethod; 418var accessor = propertySymbol.GetMethod;
Symbols\Source\SourceMemberContainerSymbol.cs (8)
4326mergeAccessors(nonTypeMembers, (SourcePropertyAccessorSymbol?)currentProperty.GetMethod, (SourcePropertyAccessorSymbol?)prevProperty.GetMethod); 4962Debug.Assert(valueProperty.GetMethod is object); 4964members.Add(valueProperty.GetMethod); 5452Debug.Assert(property.GetMethod is object); 5454members.Add(property.GetMethod); 5892AddAccessorIfAvailable(builder.NonTypeMembersWithPartialImplementations, property.GetMethod); 6013AddAccessorIfAvailable(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)
816if (this.GetMethod is { } definitionGetAccessor && implementation.GetMethod is { } implementationGetAccessor)
Symbols\Source\SourcePropertySymbolBase.cs (8)
760return GetMethod is null || HasAutoPropertyGet; 922if ((overriddenProperty.GetMethod is { } && GetMethod is null) || 942bool hasGetAccessor = GetMethod is object; 1021CheckExplicitImplementationAccessor(GetMethod, explicitlyImplementedProperty.GetMethod, explicitlyImplementedProperty, diagnostics); 1269bool hasGetter = GetMethod is object; 1292Debug.Assert(this.IsSealed && (GetMethod is null || SetMethod is null)); 1294if (GetMethod is object) 1938if (GetMethod is not null)
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (2)
181if (_property.GetMethod is not SourcePropertyAccessorSymbol getAccessor) 183Debug.Assert(_property.GetMethod is null);