Base:
property
SetMethod
Microsoft.CodeAnalysis.CSharp.Symbols.PropertySymbol.SetMethod
21 references to SetMethod
Microsoft.CodeAnalysis.CSharp (21)
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
292
accessor = (parent.Kind() == SyntaxKind.GetAccessorDeclaration) ? propertySymbol.GetMethod : propertySymbol.
SetMethod
;
Symbols\Source\SourceMemberContainerSymbol.cs (6)
3738
mergeAccessors(ref membersByName, (SourcePropertyAccessorSymbol?)currentProperty.
SetMethod
, (SourcePropertyAccessorSymbol?)prevProperty.
SetMethod
);
4596
Debug.Assert(property.
SetMethod
is object);
4598
members.Add(property.
SetMethod
);
5040
AddAccessorIfAvailable(builder.NonTypeMembers, property.
SetMethod
);
5165
AddAccessorIfAvailable(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)
663
else if (
SetMethod
is object && param.Name == ParameterSymbol.ValueParameterName)
772
if (this.
SetMethod
is { } definitionSetAccessor && implementation.
SetMethod
is { } implementationSetAccessor)
Symbols\Source\SourcePropertySymbolBase.cs (9)
729
return
SetMethod
is null || HasAutoPropertySet;
873
if (!IsStatic && ((_propertyFlags & Flags.HasAutoPropertySet) != 0) &&
SetMethod
is { IsInitOnly: false })
899
(overriddenProperty.SetMethod is { } &&
SetMethod
is null))
919
bool hasSetAccessor =
SetMethod
is object;
998
CheckExplicitImplementationAccessor(
SetMethod
, explicitlyImplementedProperty.SetMethod, explicitlyImplementedProperty, diagnostics);
1207
bool hasSetter =
SetMethod
is object;
1229
Debug.Assert(this.IsSealed && (GetMethod is null ||
SetMethod
is null));
1237
else if (
SetMethod
is object)
1854
else if (
SetMethod
is not null)