14 references to HasIsReadOnlyAttribute
Microsoft.Cci.Extensions (10)
Writers\CSharp\CSDeclarationWriter.cs (1)
450
if (state.Attributes.
HasIsReadOnlyAttribute
())
Writers\CSharp\CSDeclarationWriter.Events.cs (1)
27
if (accessor.Attributes.
HasIsReadOnlyAttribute
() && (LangVersion >= LangVersion8_0))
Writers\CSharp\CSDeclarationWriter.Fields.cs (1)
136
public bool IsReadOnly => _isReadOnly || _parentType.Attributes.
HasIsReadOnlyAttribute
();
Writers\CSharp\CSDeclarationWriter.Methods.cs (3)
152
if (method.Attributes.
HasIsReadOnlyAttribute
() && (LangVersion >= LangVersion8_0))
161
if (method.ReturnValueAttributes.
HasIsReadOnlyAttribute
())
236
if (parameter.Attributes.
HasIsReadOnlyAttribute
())
Writers\CSharp\CSDeclarationWriter.Properties.cs (3)
88
bool getterHasIsReadOnlyAttribute = (getter?.Attributes.
HasIsReadOnlyAttribute
()).GetValueOrDefault();
89
bool setterHasIsReadOnlyAttribute = (setter?.Attributes.
HasIsReadOnlyAttribute
()).GetValueOrDefault();
108
if (property.Attributes.
HasIsReadOnlyAttribute
())
Writers\CSharp\CSDeclarationWriter.Types.cs (1)
204
if (type.Attributes.
HasIsReadOnlyAttribute
())
Microsoft.DotNet.ApiCompat.Core (4)
Rules\Compat\ParameterModifiersCannotChange.cs (2)
98
if (parameter.Attributes.
HasIsReadOnlyAttribute
())
124
if (method.ReturnValueAttributes.
HasIsReadOnlyAttribute
())
Rules\Compat\TypeCannotChangeClassification.cs (2)
28
if (contract.Attributes.
HasIsReadOnlyAttribute
() && !impl.Attributes.
HasIsReadOnlyAttribute
())