16 references to ReadOnly
Microsoft.CodeAnalysis.CSharp (16)
CodeGen\CodeGenerator_HasHome.cs (4)
33internal static bool IsAnyReadOnly(AddressKind addressKind) => addressKind >= AddressKind.ReadOnly; 54if (addressKind == AddressKind.ReadOnly && !expression.Type.IsValueType && peVerifyCompatEnabled) 200if (addressKind == AddressKind.ReadOnly && !peVerifyCompatEnabled) 237|| !HasHome(receiver, AddressKind.ReadOnly, containingSymbol, peVerifyCompatEnabled, stackLocalsOpt);
CodeGen\EmitAddress.cs (2)
248var receiverTemp = EmitAddress(expression.ReferenceTypeReceiver, AddressKind.ReadOnly); 556(addressKind != AddressKind.ReadOnlyStrict ? AddressKind.ReadOnly : addressKind));
CodeGen\EmitExpression.cs (7)
420receiverTemp = EmitReceiverRef(receiver, AddressKind.ReadOnly); 499var addressKind = AddressKind.ReadOnly; 512receiverTemp = EmitReceiverRef(receiver, AddressKind.ReadOnly); 724var temp = EmitAddress(argument, AddressKind.ReadOnly); 1204return EmitFieldLoadReceiverAddress(receiver) ? null : EmitReceiverRef(receiver, AddressKind.ReadOnly); 1279if (!HasHome(receiver, AddressKind.ReadOnly)) 1858AddressKind.ReadOnly :
CodeGen\EmitStatement.cs (2)
554EmitReceiverRef(receiver, AddressKind.ReadOnly); 568EmitReceiverRef(receiver, AddressKind.ReadOnly);
Lowering\SyntheticBoundNodeFactory.cs (1)
1656CodeGenerator.AddressKind.ReadOnly,