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