Base:
property
SetMethod
Microsoft.CodeAnalysis.CSharp.Symbols.PropertySymbol.SetMethod
23 references to SetMethod
Microsoft.CodeAnalysis.CSharp (23)
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
292
accessor = (parent.Kind() == SyntaxKind.GetAccessorDeclaration) ? propertySymbol.GetMethod : propertySymbol.
SetMethod
;
FlowAnalysis\NullableWalker.cs (1)
10454
if (left is BoundPropertyAccess { PropertySymbol: SourcePropertySymbolBase {
SetMethod
: null, UsesFieldKeyword: true } property })
Symbols\Source\SourceMemberContainerSymbol.cs (6)
4177
mergeAccessors(nonTypeMembers, (SourcePropertyAccessorSymbol?)currentProperty.
SetMethod
, (SourcePropertyAccessorSymbol?)prevProperty.
SetMethod
);
5202
Debug.Assert(property.
SetMethod
is object);
5204
members.Add(property.
SetMethod
);
5646
AddAccessorIfAvailable(builder.NonTypeMembersWithPartialImplementations, property.
SetMethod
);
5771
AddAccessorIfAvailable(builder.NonTypeMembersWithPartialImplementations, indexer.
SetMethod
);
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
820
? (MethodKind == MethodKind.PropertyGet ? other.GetMethod : other.
SetMethod
)
824
? (MethodKind == MethodKind.PropertyGet ? other.GetMethod : other.
SetMethod
)
Symbols\Source\SourcePropertySymbol.cs (4)
689
else if (
SetMethod
is object && param.Name == ParameterSymbol.ValueParameterName)
695
if (
SetMethod
is { } setter && this.GetIsNewExtensionMember())
817
if (this.
SetMethod
is { } definitionSetAccessor && implementation.
SetMethod
is { } implementationSetAccessor)
Symbols\Source\SourcePropertySymbolBase.cs (9)
753
return
SetMethod
is null || HasAutoPropertySet;
889
if (!IsStatic && ((_propertyFlags & Flags.HasAutoPropertySet) != 0) &&
SetMethod
is { IsInitOnly: false })
915
(overriddenProperty.SetMethod is { } &&
SetMethod
is null))
935
bool hasSetAccessor =
SetMethod
is object;
1014
CheckExplicitImplementationAccessor(
SetMethod
, explicitlyImplementedProperty.SetMethod, explicitlyImplementedProperty, diagnostics);
1232
bool hasSetter =
SetMethod
is object;
1254
Debug.Assert(this.IsSealed && (GetMethod is null ||
SetMethod
is null));
1262
else if (
SetMethod
is object)
1893
else if (
SetMethod
is not null)