IParseSink::AutoExpression Method
Called for each expression that should be provided for a user in the Auto Debugging window.
HRESULT AutoExpression (
long startLine,
long startIdx,
long endLine,
long endIdx
);
Parameters
startLine
[in] Specifies the starting line on which the expression occurs.startIdx
[in] Specifies the starting index position on startLine for the first character in the expression.endLine
[in] Specifies the ending line for the expression.endIdx
[in] Specifies the ending index position on endLine for the list character in the expression.
Return Value
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
Call this method only if your IBabelService::ParseSource Method implementation is called with the ParseReason Enumeration value ReasonAutos in the reason parameter. You should call IParseSink::AutoExpression once for each interesting and relevant expression found in the span of text passed to you in the text parameter of IBabelService::ParseSource Method. An expression is typically the name of a variable or parameter that can be evaluated to produce a value in the Autos debugging window while debugging is active.
Note
Call this method for each expression that you want displayed in the Autos window in the debugger. However, all parsed name information that you have provided to the Babel Package using the IParseSink::StartName Method and IParseSink::QualifyName Method methods is automatically displayed in the Autos window. As a result, the AutoExpression method is rarely required.
See How to: Enable Debugger Autos Window Support for more information on implementing autos support.
See Also
Concepts
How to: Enable Debugger Autos Window Support