9 references to CanBePassedByReference
Microsoft.CodeAnalysis.CSharp (9)
Lowering\LocalRewriter\LocalRewriter.cs (8)
288
if (!
CanBePassedByReference
(node) &&
CanBePassedByReference
(visited))
317
Debug.Assert(
CanBePassedByReference
(node));
319
Debug.Assert(
CanBePassedByReference
(result));
1061
return !eventAccess.ReceiverOpt.Type.IsValueType ||
CanBePassedByReference
(eventAccess.ReceiverOpt);
1072
return !fieldAccess.ReceiverOpt.Type.IsValueType ||
CanBePassedByReference
(fieldAccess.ReceiverOpt);
1078
return
CanBePassedByReference
(((BoundSequence)expr).Value);
1096
return
CanBePassedByReference
(((BoundImplicitIndexerAccess)expr).IndexerOrSliceAccess);
Lowering\SpillSequenceSpiller.cs (1)
1074
if (!receiver.Type.IsReferenceType && LocalRewriter.
CanBePassedByReference
(receiver))