Boo.Lang.Compiler.CompilerContext.TraceLeave C# (CSharp) Метод

TraceLeave() приватный Метод

private TraceLeave ( string format, object param ) : void
format string
param object
Результат void
        public void TraceLeave(string format, object param)
        {
            if (_parameters.TraceInfo)
            {
                --Trace.IndentLevel;
                Trace.WriteLine(string.Format(format, param));
            }
        }

Usage Example

Пример #1
0
        public void Run(CompilerContext context)
        {
            foreach (ICompilerStep step in _steps)
            {
                context.TraceEnter("Entering {0}...", step);

                step.Initialize(context);
                try
                {
                    step.Run();
                }
                catch (Boo.Lang.Compiler.Error error)
                {
                    context.Errors.Add(error);
                }
                catch (Exception x)
                {
                    context.Errors.StepExecution(step, x);
                }
                context.TraceLeave("Left {0}.", step);
            }

            foreach (ICompilerStep step in _steps)
            {
                step.Dispose();
            }
        }