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)
3738mergeAccessors(ref membersByName, (SourcePropertyAccessorSymbol?)currentProperty.SetMethod, (SourcePropertyAccessorSymbol?)prevProperty.SetMethod); 4596Debug.Assert(property.SetMethod is object); 4598members.Add(property.SetMethod); 5040AddAccessorIfAvailable(builder.NonTypeMembers, property.SetMethod); 5165AddAccessorIfAvailable(builder.NonTypeMembers, 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)
729return SetMethod is null || HasAutoPropertySet; 873if (!IsStatic && ((_propertyFlags & Flags.HasAutoPropertySet) != 0) && SetMethod is { IsInitOnly: false }) 899(overriddenProperty.SetMethod is { } && SetMethod is null)) 919bool hasSetAccessor = SetMethod is object; 998CheckExplicitImplementationAccessor(SetMethod, explicitlyImplementedProperty.SetMethod, explicitlyImplementedProperty, diagnostics); 1207bool hasSetter = SetMethod is object; 1229Debug.Assert(this.IsSealed && (GetMethod is null || SetMethod is null)); 1237else if (SetMethod is object) 1854else if (SetMethod is not null)