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)
328if (property._setMethod is { IsAutoPropertyAccessor: false } setMethod 633return _setMethod; 812else if ((_setMethod is null || _setMethod.IsInitOnly || _setMethod.IsDeclaredReadOnly) && 924Debug.Assert(_setMethod is object); 928diagnostics.Add(ErrorCode.ERR_RefPropertyCannotHaveSetAccessor, _setMethod.GetFirstLocation()); 931(_setMethod.LocalAccessibility != Accessibility.NotApplicable)) 936else if (_getMethod.LocalDeclaredReadOnly && _setMethod.LocalDeclaredReadOnly) 944CheckAbstractPropertyAccessorNotPrivate(_setMethod, diagnostics); 965diagnostics.Add(ErrorCode.ERR_AutoPropertyMustHaveGetAccessor, _setMethod!.GetFirstLocation()); 970var accessor = _getMethod ?? _setMethod; 990CheckAccessibilityMoreRestrictive(_setMethod, diagnostics); 1605isNullOrValidAccessor(_setMethod); 1777if (_setMethod is not null) 1778DeclaringCompilation.SymbolDeclaredEvent(_setMethod);