38 references to UseKind
Microsoft.CodeAnalysis.CSharp (38)
CodeGen\EmitAddress.cs (3)
115
EmitCallExpression(call,
UseKind
.UsedAsAddress);
127
EmitCalli(funcPtrInvocation,
UseKind
.UsedAsAddress);
160
EmitAssignmentExpression(assignment,
UseKind
.UsedAsAddress);
CodeGen\EmitExpression.cs (35)
99
EmitAssignmentExpression((BoundAssignmentOperator)expression, used ?
UseKind
.UsedAsValue :
UseKind
.Unused);
103
EmitCallExpression((BoundCall)expression, used ?
UseKind
.UsedAsValue :
UseKind
.Unused);
353
EmitCalli((BoundFunctionPointerInvocation)expression, used ?
UseKind
.UsedAsValue :
UseKind
.Unused);
1618
private void EmitCallExpression(BoundCall call,
UseKind
useKind)
1655
private void EmitStaticCallExpression(BoundCall call,
UseKind
useKind)
1686
private void EmitInstanceCallExpression(BoundCall call,
UseKind
useKind)
1715
UseKind
receiverUseKind;
1718
receiverUseKind =
UseKind
.UsedAsValue;
1726
receiverUseKind =
UseKind
.UsedAsValue;
1746
receiverUseKind =
UseKind
.UsedAsAddress;
1753
receiverUseKind =
UseKind
.UsedAsValue;
1767
Debug.Assert(receiverUseKind ==
UseKind
.UsedAsValue);
1777
Debug.Assert(receiverUseKind ==
UseKind
.UsedAsValue);
1784
if (receiverUseKind !=
UseKind
.UsedAsAddress)
1786
Debug.Assert(receiverUseKind ==
UseKind
.UsedAsValue);
1940
void emitArgumentsAndCallEpilogue(BoundCall call, CallKind callKind,
UseKind
useKind)
2504
private void EmitAssignmentExpression(BoundAssignmentOperator assignmentOperator,
UseKind
useKind)
2506
if (TryEmitAssignmentInPlace(assignmentOperator, useKind !=
UseKind
.Unused))
2932
EmitCallExpression(left,
UseKind
.UsedAsAddress);
2943
EmitCalli(left,
UseKind
.UsedAsAddress);
2971
EmitAssignmentExpression(assignment,
UseKind
.UsedAsAddress);
3022
private LocalDefinition EmitAssignmentDuplication(BoundAssignmentOperator assignmentOperator,
UseKind
useKind, bool lhsUsesStack)
3025
if (useKind !=
UseKind
.Unused)
3166
private void EmitAssignmentPostfix(BoundAssignmentOperator assignment, LocalDefinition temp,
UseKind
useKind)
3170
if (useKind ==
UseKind
.UsedAsAddress)
3181
if (useKind ==
UseKind
.UsedAsValue && assignment.IsRef)
4014
private void EmitCalli(BoundFunctionPointerInvocation ptrInvocation,
UseKind
useKind)
4044
private void EmitCallCleanup(SyntaxNode syntax,
UseKind
useKind, MethodSymbol method)
4048
EmitPopIfUnused(useKind !=
UseKind
.Unused);
4054
Debug.Assert(useKind ==
UseKind
.Unused, "Using the return value of a void method.");
4088
if (useKind ==
UseKind
.UsedAsValue && method.RefKind != RefKind.None)
4092
else if (useKind ==
UseKind
.UsedAsAddress)