Base:
property
SetMethod
Microsoft.CodeAnalysis.CSharp.Symbols.PropertySymbol.SetMethod
21 references to SetMethod
Microsoft.CodeAnalysis.CSharp (21)
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
292accessor = (parent.Kind() == SyntaxKind.GetAccessorDeclaration) ? propertySymbol.GetMethod : propertySymbol.SetMethod;
Symbols\Source\SourceMemberContainerSymbol.cs (6)
3822mergeAccessors(nonTypeMembers, (SourcePropertyAccessorSymbol?)currentProperty.SetMethod, (SourcePropertyAccessorSymbol?)prevProperty.SetMethod); 4671Debug.Assert(property.SetMethod is object); 4673members.Add(property.SetMethod); 5115AddAccessorIfAvailable(builder.NonTypeMembersWithPartialImplementations, property.SetMethod); 5240AddAccessorIfAvailable(builder.NonTypeMembersWithPartialImplementations, indexer.SetMethod);
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
835? (MethodKind == MethodKind.PropertyGet ? other.GetMethod : other.SetMethod) 839? (MethodKind == MethodKind.PropertyGet ? other.GetMethod : other.SetMethod)
Symbols\Source\SourcePropertySymbol.cs (3)
663else if (SetMethod is object && param.Name == ParameterSymbol.ValueParameterName) 772if (this.SetMethod is { } definitionSetAccessor && implementation.SetMethod is { } implementationSetAccessor)
Symbols\Source\SourcePropertySymbolBase.cs (9)
730return SetMethod is null || HasAutoPropertySet; 866if (!IsStatic && ((_propertyFlags & Flags.HasAutoPropertySet) != 0) && SetMethod is { IsInitOnly: false }) 892(overriddenProperty.SetMethod is { } && SetMethod is null)) 912bool hasSetAccessor = SetMethod is object; 991CheckExplicitImplementationAccessor(SetMethod, explicitlyImplementedProperty.SetMethod, explicitlyImplementedProperty, diagnostics); 1200bool hasSetter = SetMethod is object; 1222Debug.Assert(this.IsSealed && (GetMethod is null || SetMethod is null)); 1230else if (SetMethod is object) 1855else if (SetMethod is not null)