Base:
property
SetMethod
Microsoft.CodeAnalysis.CSharp.Symbols.PropertySymbol.SetMethod
24 references to SetMethod
Microsoft.CodeAnalysis.CSharp (24)
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
292
accessor = (parent.Kind() == SyntaxKind.GetAccessorDeclaration) ? propertySymbol.GetMethod : propertySymbol.
SetMethod
;
FlowAnalysis\NullableWalker.cs (1)
11220
if (left is BoundPropertyAccess { PropertySymbol: SourcePropertySymbolBase {
SetMethod
: null, UsesFieldKeyword: true } property })
Symbols\Source\SourceMemberContainerSymbol.cs (7)
4322
mergeAccessors(nonTypeMembers, (SourcePropertyAccessorSymbol?)currentProperty.
SetMethod
, (SourcePropertyAccessorSymbol?)prevProperty.
SetMethod
);
4949
Debug.Assert(valueProperty.
SetMethod
is null);
5439
Debug.Assert(property.
SetMethod
is object);
5441
members.Add(property.
SetMethod
);
5879
AddAccessorIfAvailable(builder.NonTypeMembersWithPartialImplementations, property.
SetMethod
);
6000
AddAccessorIfAvailable(builder.NonTypeMembersWithPartialImplementations, indexer.
SetMethod
);
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
859
? (MethodKind == MethodKind.PropertyGet ? other.GetMethod : other.
SetMethod
)
863
? (MethodKind == MethodKind.PropertyGet ? other.GetMethod : other.
SetMethod
)
Symbols\Source\SourcePropertySymbol.cs (4)
688
else if (
SetMethod
is object && param.Name == ParameterSymbol.ValueParameterName)
694
if (
SetMethod
is { } setter && this.IsExtensionBlockMember())
821
if (this.
SetMethod
is { } definitionSetAccessor && implementation.
SetMethod
is { } implementationSetAccessor)
Symbols\Source\SourcePropertySymbolBase.cs (9)
755
return
SetMethod
is null || HasAutoPropertySet;
896
if (!IsStatic && HasAutoPropertySet &&
SetMethod
is { IsInitOnly: false })
922
(overriddenProperty.SetMethod is { } &&
SetMethod
is null))
942
bool hasSetAccessor =
SetMethod
is object;
1021
CheckExplicitImplementationAccessor(
SetMethod
, explicitlyImplementedProperty.SetMethod, explicitlyImplementedProperty, diagnostics);
1260
bool hasSetter =
SetMethod
is object;
1282
Debug.Assert(this.IsSealed && (GetMethod is null ||
SetMethod
is null));
1290
else if (
SetMethod
is object)
1933
else if (
SetMethod
is not null)