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)
4176mergeAccessors(nonTypeMembers, (SourcePropertyAccessorSymbol?)currentProperty.GetMethod, (SourcePropertyAccessorSymbol?)prevProperty.GetMethod); 5201Debug.Assert(property.GetMethod is object); 5203members.Add(property.GetMethod); 5645AddAccessorIfAvailable(builder.NonTypeMembersWithPartialImplementations, property.GetMethod); 5770AddAccessorIfAvailable(builder.NonTypeMembersWithPartialImplementations, indexer.GetMethod);
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
820? (MethodKind == MethodKind.PropertyGet ? other.GetMethod : other.SetMethod) 824? (MethodKind == MethodKind.PropertyGet ? other.GetMethod : other.SetMethod)
Symbols\Source\SourcePropertySymbol.cs (2)
812if (this.GetMethod is { } definitionGetAccessor && implementation.GetMethod is { } implementationGetAccessor)
Symbols\Source\SourcePropertySymbolBase.cs (8)
757return GetMethod is null || HasAutoPropertyGet; 914if ((overriddenProperty.GetMethod is { } && GetMethod is null) || 934bool hasGetAccessor = GetMethod is object; 1013CheckExplicitImplementationAccessor(GetMethod, explicitlyImplementedProperty.GetMethod, explicitlyImplementedProperty, diagnostics); 1231bool hasGetter = GetMethod is object; 1254Debug.Assert(this.IsSealed && (GetMethod is null || SetMethod is null)); 1256if (GetMethod is object) 1888if (GetMethod is not null)
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (2)
168if (_property.GetMethod is not SourcePropertyAccessorSymbol getAccessor) 170Debug.Assert(_property.GetMethod is null);