12 references to IsAnyReadOnly
Microsoft.CodeAnalysis.CSharp (12)
CodeGen\CodeGenerator_HasHome.cs (8)
71
Debug.Assert(
IsAnyReadOnly
(addressKind), "`this` is readonly in classes");
75
if (!
IsAnyReadOnly
(addressKind) && containingSymbol is MethodSymbol { ContainingSymbol: NamedTypeSymbol, IsEffectivelyReadOnly: true })
87
return
IsAnyReadOnly
(addressKind) ||
95
(!
IsAnyReadOnly
(addressKind) && local.RefKind == RefKind.RefReadOnly));
100
(
IsAnyReadOnly
(addressKind) && methodRefKind == RefKind.RefReadOnly);
106
(
IsAnyReadOnly
(addressKind) && dupRefKind == RefKind.RefReadOnly);
122
(
IsAnyReadOnly
(addressKind) && lhsRefKind is RefKind.RefReadOnly or RefKind.RefReadOnlyParameter);
226
Debug.Assert(!
IsAnyReadOnly
(addressKind));
CodeGen\EmitAddress.cs (4)
65
Debug.Assert(expression.Type.IsValueType ||
IsAnyReadOnly
(addressKind), "'this' is readonly in classes");
125
(
IsAnyReadOnly
(addressKind) && funcPtrRefKind == RefKind.RefReadOnly))
181
(
IsAnyReadOnly
(addressKind) && methodRefKind == RefKind.RefReadOnly);
424
if (!
IsAnyReadOnly
(addressKind))