Base:
property
GetMethod
Microsoft.CodeAnalysis.CSharp.Symbols.PropertySymbol.GetMethod
22 references to GetMethod
Microsoft.CodeAnalysis.CSharp (22)
Binder\BinderFactory.BinderFactoryVisitor.cs (2)
292accessor = (parent.Kind() == SyntaxKind.GetAccessorDeclaration) ? propertySymbol.GetMethod : propertySymbol.SetMethod; 418var accessor = propertySymbol.GetMethod;
Symbols\Source\SourceMemberContainerSymbol.cs (6)
3843mergeAccessors(nonTypeMembers, (SourcePropertyAccessorSymbol?)currentProperty.GetMethod, (SourcePropertyAccessorSymbol?)prevProperty.GetMethod); 4790Debug.Assert(property.GetMethod is object); 4792members.Add(property.GetMethod); 5234AddAccessorIfAvailable(builder.NonTypeMembersWithPartialImplementations, property.GetMethod); 5359AddAccessorIfAvailable(builder.NonTypeMembersWithPartialImplementations, indexer.GetMethod);
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
838? (MethodKind == MethodKind.PropertyGet ? other.GetMethod : other.SetMethod) 842? (MethodKind == MethodKind.PropertyGet ? other.GetMethod : other.SetMethod)
Symbols\Source\SourcePropertySymbol.cs (2)
769if (this.GetMethod is { } definitionGetAccessor && implementation.GetMethod is { } implementationGetAccessor)
Symbols\Source\SourcePropertySymbolBase.cs (8)
734return GetMethod is null || HasAutoPropertyGet; 891if ((overriddenProperty.GetMethod is { } && GetMethod is null) || 911bool hasGetAccessor = GetMethod is object; 990CheckExplicitImplementationAccessor(GetMethod, explicitlyImplementedProperty.GetMethod, explicitlyImplementedProperty, diagnostics); 1199bool hasGetter = GetMethod is object; 1222Debug.Assert(this.IsSealed && (GetMethod is null || SetMethod is null)); 1224if (GetMethod is object) 1850if (GetMethod is not null)
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (2)
167if (_property.GetMethod is not SourcePropertyAccessorSymbol getAccessor) 169Debug.Assert(_property.GetMethod is null);