Base:
property
SetMethod
Microsoft.CodeAnalysis.CSharp.Symbols.PropertySymbol.SetMethod
17 references to SetMethod
Microsoft.CodeAnalysis.CSharp (17)
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
292accessor = (parent.Kind() == SyntaxKind.GetAccessorDeclaration) ? propertySymbol.GetMethod : propertySymbol.SetMethod;
FlowAnalysis\NullableWalker.cs (1)
10113if (left is BoundPropertyAccess { PropertySymbol: SourcePropertySymbolBase { SetMethod: null, UsesFieldKeyword: true } property })
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
815? (MethodKind == MethodKind.PropertyGet ? other.GetMethod : other.SetMethod) 819? (MethodKind == MethodKind.PropertyGet ? other.GetMethod : other.SetMethod)
Symbols\Source\SourcePropertySymbol.cs (4)
691else if (SetMethod is object && param.Name == ParameterSymbol.ValueParameterName) 697if (SetMethod is { } setter && this.GetIsNewExtensionMember()) 819if (this.SetMethod is { } definitionSetAccessor && implementation.SetMethod is { } implementationSetAccessor)
Symbols\Source\SourcePropertySymbolBase.cs (9)
752return SetMethod is null || HasAutoPropertySet; 888if (!IsStatic && ((_propertyFlags & Flags.HasAutoPropertySet) != 0) && SetMethod is { IsInitOnly: false }) 914(overriddenProperty.SetMethod is { } && SetMethod is null)) 934bool hasSetAccessor = SetMethod is object; 1013CheckExplicitImplementationAccessor(SetMethod, explicitlyImplementedProperty.SetMethod, explicitlyImplementedProperty, diagnostics); 1226bool hasSetter = SetMethod is object; 1248Debug.Assert(this.IsSealed && (GetMethod is null || SetMethod is null)); 1256else if (SetMethod is object) 1887else if (SetMethod is not null)