Base:
property
SetMethod
Microsoft.CodeAnalysis.CSharp.Symbols.PropertySymbol.SetMethod
24 references to SetMethod
Microsoft.CodeAnalysis.CSharp (24)
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
292accessor = (parent.Kind() == SyntaxKind.GetAccessorDeclaration) ? propertySymbol.GetMethod : propertySymbol.SetMethod;
FlowAnalysis\NullableWalker.cs (1)
11220if (left is BoundPropertyAccess { PropertySymbol: SourcePropertySymbolBase { SetMethod: null, UsesFieldKeyword: true } property })
Symbols\Source\SourceMemberContainerSymbol.cs (7)
4322mergeAccessors(nonTypeMembers, (SourcePropertyAccessorSymbol?)currentProperty.SetMethod, (SourcePropertyAccessorSymbol?)prevProperty.SetMethod); 4949Debug.Assert(valueProperty.SetMethod is null); 5439Debug.Assert(property.SetMethod is object); 5441members.Add(property.SetMethod); 5879AddAccessorIfAvailable(builder.NonTypeMembersWithPartialImplementations, property.SetMethod); 6000AddAccessorIfAvailable(builder.NonTypeMembersWithPartialImplementations, indexer.SetMethod);
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 (4)
688else if (SetMethod is object && param.Name == ParameterSymbol.ValueParameterName) 694if (SetMethod is { } setter && this.IsExtensionBlockMember()) 821if (this.SetMethod is { } definitionSetAccessor && implementation.SetMethod is { } implementationSetAccessor)
Symbols\Source\SourcePropertySymbolBase.cs (9)
755return SetMethod is null || HasAutoPropertySet; 896if (!IsStatic && HasAutoPropertySet && SetMethod is { IsInitOnly: false }) 922(overriddenProperty.SetMethod is { } && SetMethod is null)) 942bool hasSetAccessor = SetMethod is object; 1021CheckExplicitImplementationAccessor(SetMethod, explicitlyImplementedProperty.SetMethod, explicitlyImplementedProperty, diagnostics); 1260bool hasSetter = SetMethod is object; 1282Debug.Assert(this.IsSealed && (GetMethod is null || SetMethod is null)); 1290else if (SetMethod is object) 1933else if (SetMethod is not null)