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