12 references to IsAnyReadOnly
Microsoft.CodeAnalysis.CSharp (12)
CodeGen\CodeGenerator_HasHome.cs (8)
71Debug.Assert(IsAnyReadOnly(addressKind), "`this` is readonly in classes"); 75if (!IsAnyReadOnly(addressKind) && containingSymbol is MethodSymbol { ContainingSymbol: NamedTypeSymbol, IsEffectivelyReadOnly: true }) 87return 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); 226Debug.Assert(!IsAnyReadOnly(addressKind));
CodeGen\EmitAddress.cs (4)
65Debug.Assert(expression.Type.IsValueType || IsAnyReadOnly(addressKind), "'this' is readonly in classes"); 125(IsAnyReadOnly(addressKind) && funcPtrRefKind == RefKind.RefReadOnly)) 181(IsAnyReadOnly(addressKind) && methodRefKind == RefKind.RefReadOnly); 424if (!IsAnyReadOnly(addressKind))