16 references to ReadOnly
Microsoft.CodeAnalysis.CSharp (16)
CodeGen\CodeGenerator_HasHome.cs (4)
33
internal static bool IsAnyReadOnly(AddressKind addressKind) => addressKind >= AddressKind.
ReadOnly
;
54
if (addressKind == AddressKind.
ReadOnly
&& !expression.Type.IsValueType && peVerifyCompatEnabled)
200
if (addressKind == AddressKind.
ReadOnly
&& !peVerifyCompatEnabled)
237
|| !HasHome(receiver, AddressKind.
ReadOnly
, containingSymbol, peVerifyCompatEnabled, stackLocalsOpt);
CodeGen\EmitAddress.cs (2)
248
var receiverTemp = EmitAddress(expression.ReferenceTypeReceiver, AddressKind.
ReadOnly
);
556
(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
CodeGenerator.AddressKind.
ReadOnly
,