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)
3822
mergeAccessors(nonTypeMembers, (SourcePropertyAccessorSymbol?)currentProperty.
SetMethod
, (SourcePropertyAccessorSymbol?)prevProperty.
SetMethod
);
4671
Debug.Assert(property.
SetMethod
is object);
4673
members.Add(property.
SetMethod
);
5115
AddAccessorIfAvailable(builder.NonTypeMembersWithPartialImplementations, property.
SetMethod
);
5240
AddAccessorIfAvailable(builder.NonTypeMembersWithPartialImplementations, 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)
730
return
SetMethod
is null || HasAutoPropertySet;
866
if (!IsStatic && ((_propertyFlags & Flags.HasAutoPropertySet) != 0) &&
SetMethod
is { IsInitOnly: false })
892
(overriddenProperty.SetMethod is { } &&
SetMethod
is null))
912
bool hasSetAccessor =
SetMethod
is object;
991
CheckExplicitImplementationAccessor(
SetMethod
, explicitlyImplementedProperty.SetMethod, explicitlyImplementedProperty, diagnostics);
1200
bool hasSetter =
SetMethod
is object;
1222
Debug.Assert(this.IsSealed && (GetMethod is null ||
SetMethod
is null));
1230
else if (
SetMethod
is object)
1855
else if (
SetMethod
is not null)