Share via


IDkmClrExpressionCompiler.CompileAssignment Method

Definition

Compile the given expression and generate code to assign the value of the expression to an L-Value.

public:
 void CompileAssignment(Microsoft::VisualStudio::Debugger::Evaluation::DkmLanguageExpression ^ expression, Microsoft::VisualStudio::Debugger::Clr::DkmClrInstructionAddress ^ instructionAddress, Microsoft::VisualStudio::Debugger::Evaluation::DkmEvaluationResult ^ lValue, [Runtime::InteropServices::Out] System::String ^ % error, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Debugger::Evaluation::ClrCompilation::DkmCompiledClrInspectionQuery ^ % result);
public void CompileAssignment (Microsoft.VisualStudio.Debugger.Evaluation.DkmLanguageExpression expression, Microsoft.VisualStudio.Debugger.Clr.DkmClrInstructionAddress instructionAddress, Microsoft.VisualStudio.Debugger.Evaluation.DkmEvaluationResult lValue, out string error, out Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmCompiledClrInspectionQuery result);
public void CompileAssignment (Microsoft.VisualStudio.Debugger.Evaluation.DkmLanguageExpression expression, Microsoft.VisualStudio.Debugger.Clr.DkmClrInstructionAddress instructionAddress, Microsoft.VisualStudio.Debugger.Evaluation.DkmEvaluationResult lValue, out string? error, out Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation.DkmCompiledClrInspectionQuery? result);
abstract member CompileAssignment : Microsoft.VisualStudio.Debugger.Evaluation.DkmLanguageExpression * Microsoft.VisualStudio.Debugger.Clr.DkmClrInstructionAddress * Microsoft.VisualStudio.Debugger.Evaluation.DkmEvaluationResult * string * DkmCompiledClrInspectionQuery -> unit
Public Sub CompileAssignment (expression As DkmLanguageExpression, instructionAddress As DkmClrInstructionAddress, lValue As DkmEvaluationResult, ByRef error As String, ByRef result As DkmCompiledClrInspectionQuery)

Parameters

expression
DkmLanguageExpression

[In] DkmLanguageExpression represents an expression to be parsed and evaluated by an expression evaluator.

instructionAddress
DkmClrInstructionAddress

[In] The code context to use for compiling the expression.

lValue
DkmEvaluationResult

[In] The L-value of the assignment. This is the result of a previous evaluation.

error
String

[Out,Optional] Indicates any error compiling the expression or the reason the assignment is invalid. If the compiler can generate code for the assignment, this value should be null. In error cases, this value indicates the reason for the compile error and the caller should return S_OK.

result
DkmCompiledClrInspectionQuery

[Out,Optional] The compiled assignment operation. If Result is null, and Error is not null, there was a compile error.

Applies to