コード例 #1
0
            public void AfterStep(object sender, CompilerStepEventArgs args)
            {
                Console.WriteLine("********* {0} *********", args.Step);

                StringWriter writer = new StringWriter();

                args.Context.CompileUnit.Accept(new BooPrinterVisitor(writer, BooPrinterVisitor.PrintOptions.PrintLocals));
                string code = writer.ToString();

                if (code != _last)
                {
                    Console.WriteLine(code);
                }
                else
                {
                    Console.WriteLine("no changes");
                }
                _last = code;
            }
コード例 #2
0
 void OnAfterStep(object sender, CompilerStepEventArgs args)
 {
     args.Context.TraceLeave("Leaving {0}", args.Step);
 }
コード例 #3
0
 void OnBeforeStep(object sender, CompilerStepEventArgs args)
 {
     args.Context.TraceEnter("Entering {0}", args.Step);
 }
コード例 #4
0
 private void DebugModuleAfterStep(object sender, CompilerStepEventArgs args)
 {
     Console.WriteLine("********* {0} *********", args.Step);
     Console.WriteLine(args.Context.CompileUnit.ToCodeString());
 }
コード例 #5
0
 void OnAfterStep(object sender, CompilerStepEventArgs args)
 {
     stepStopwatch.Stop();
     args.Context.TraceLeave("Leaving {0} ({1}ms)", args.Step, stepStopwatch.ElapsedMilliseconds);
 }
コード例 #6
0
 void OnBeforeStep(object sender, CompilerStepEventArgs args)
 {
     args.Context.TraceEnter("Entering {0}", args.Step);
     stepStopwatch = Stopwatch.StartNew();
 }
コード例 #7
0
 public void BeforeStep(object sender, CompilerStepEventArgs args)
 {
     _stopWatch = Stopwatch.StartNew();
 }