Inheritance: System.EventArgs
Example #1
0
		void OnAfterStep(object sender, CompilerStepEventArgs args)
		{
			stepStopwatch.Stop();
			args.Context.TraceLeave("Leaving {0} ({1}ms)", args.Step, stepStopwatch.ElapsedMilliseconds);
		}
Example #2
0
			public void AfterStep(object sender, CompilerStepEventArgs args)
			{
				_stopWatch.Stop();
				Console.WriteLine("********* {0} - {1} *********", args.Step, _stopWatch.Elapsed);

				var writer = new StringWriter();
				args.Context.CompileUnit.Accept(new BooPrinterVisitor(writer, BooPrinterVisitor.PrintOptions.PrintLocals));
				var code = writer.ToString();
				if (code != _last)
					Console.WriteLine(code);
				else
					Console.WriteLine("no changes");
				_last = code;
			}
Example #3
0
		void OnBeforeStep(object sender, CompilerStepEventArgs args)
		{
			args.Context.TraceEnter("Entering {0}", args.Step);
			stepStopwatch = Stopwatch.StartNew();
		}
Example #4
0
			public void BeforeStep(object sender, CompilerStepEventArgs args)
			{
				_stopWatch = Stopwatch.StartNew();
			}
Example #5
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;
            }
Example #6
0
 void OnBeforeStep(object sender, CompilerStepEventArgs args)
 {
     args.Context.TraceEnter("Entering {0}", args.Step);
 }
Example #7
0
 void OnAfterStep(object sender, CompilerStepEventArgs args)
 {
     args.Context.TraceLeave("Leaving {0}", args.Step);
 }
Example #8
0
 void Pipeline_BeforeStep(object sender, CompilerStepEventArgs args)
 {
     if(TracePipelineSteps)this.compiler.Parameters.OutputWriter.WriteLine("before: " + args.Step.GetType().Name);
 }