1 write to _setMethod
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourcePropertySymbolBase.cs (1)
194
_setMethod
= CreateSetAccessorSymbol(hasAutoPropertySet, diagnostics);
16 references to _setMethod
Microsoft.CodeAnalysis.CSharp (16)
Symbols\Source\SourcePropertySymbolBase.cs (16)
328
if (property.
_setMethod
is { IsAutoPropertyAccessor: false } setMethod
633
return
_setMethod
;
812
else if ((
_setMethod
is null ||
_setMethod
.IsInitOnly ||
_setMethod
.IsDeclaredReadOnly) &&
924
Debug.Assert(
_setMethod
is object);
928
diagnostics.Add(ErrorCode.ERR_RefPropertyCannotHaveSetAccessor,
_setMethod
.GetFirstLocation());
931
(
_setMethod
.LocalAccessibility != Accessibility.NotApplicable))
936
else if (_getMethod.LocalDeclaredReadOnly &&
_setMethod
.LocalDeclaredReadOnly)
944
CheckAbstractPropertyAccessorNotPrivate(
_setMethod
, diagnostics);
965
diagnostics.Add(ErrorCode.ERR_AutoPropertyMustHaveGetAccessor,
_setMethod
!.GetFirstLocation());
970
var accessor = _getMethod ??
_setMethod
;
990
CheckAccessibilityMoreRestrictive(
_setMethod
, diagnostics);
1605
isNullOrValidAccessor(
_setMethod
);
1777
if (
_setMethod
is not null)
1778
DeclaringCompilation.SymbolDeclaredEvent(
_setMethod
);