getDocumentContext() публичный Метод

Returns the document context needed for showing the location of the current instruction pointer.
public getDocumentContext ( string filename, uint line ) : AD7DocumentContext
filename string File name.
line uint Line number.
Результат AD7DocumentContext
Пример #1
0
        // HandleBreakpoints calls this too, so it needs to be public and static
        public static void onStepCompleted(EventDispatcher eventDispatcher, string file, uint line)
        {
            if (eventDispatcher.engine.m_state == AD7Engine.DE_STATE.STEP_MODE)
            {
                eventDispatcher.engine.m_state = AD7Engine.DE_STATE.BREAK_MODE;

                // Visual Studio shows the line position one more than it actually is
                eventDispatcher.engine.m_docContext = eventDispatcher.getDocumentContext(file, line - 1);
                AD7StepCompletedEvent.Send(eventDispatcher.engine);

            //                EvaluatedExp.reset();
            //                VariableInfo.reset();
            //                 eventDispatcher.engine.resetStackFrames();
            }
        }