16 references to ReadOnly
Microsoft.CodeAnalysis.CSharp (16)
Binder\Binder.ValueChecks.cs (4)
5710internal static bool IsAnyReadOnly(AddressKind addressKind) => addressKind >= AddressKind.ReadOnly; 5728if (addressKind == AddressKind.ReadOnly && !expression.Type.IsValueType && peVerifyCompatEnabled) 5874if (addressKind == AddressKind.ReadOnly && !peVerifyCompatEnabled) 5911|| !HasHome(receiver, AddressKind.ReadOnly, containingSymbol, peVerifyCompatEnabled, stackLocalsOpt);
CodeGen\EmitAddress.cs (2)
250var receiverTemp = EmitAddress(expression.ReferenceTypeReceiver, AddressKind.ReadOnly); 558(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)
1656Binder.AddressKind.ReadOnly,