Exemple #1
0
        public virtual void Process()
        {
            //FLProgram.Debugger?.ProcessEvent(this);
            FLDebuggerHelper.OnFunctionStepInto(Root, new FLDebuggerEvents.FunctionRunEventArgs(Root, this));
            for (int i = 0; i < Instructions.Count; i++)
            {
                FLDebuggerHelper.OnInstructionStepInto(
                    Root,
                    new FLDebuggerEvents.InstructionRunEventArgs(
                        Root,
                        this,
                        Instructions[i]
                        )
                    );

                //FLProgram.Debugger?.ProcessEvent(Instructions[i]);
                Instructions[i].Process();
                FLDebuggerHelper.AfterInstruction(
                    Root,
                    new FLDebuggerEvents.InstructionRunEventArgs(
                        Root,
                        this,
                        Instructions[i]
                        )
                    );
            }

            FLDebuggerHelper.AfterFunction(Root, new FLDebuggerEvents.FunctionRunEventArgs(Root, this));
        }