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