Interface Tracer

All Known Implementing Classes:
Tracers.DelegatingTracer, Tracers.EmptyTracer

public interface Tracer
Called on various events during compilation.
  • Method Details

    • onCore

      void onCore(int pass, Core.Decl e)
      Called when the expression is converted to core.
    • onPlan

      void onPlan(Code code)
      Called when code is generated.
    • onResult

      void onResult(Object o)
      Called on the result of an evaluation.
    • onWarnings

      void onWarnings(List<Throwable> warningList)
      Called with the list of warnings after evaluation.
    • onException

      boolean onException(@Nullable Throwable e)
      Called with the exception thrown during evaluation, or null if no exception was thrown. Returns whether a handler was found.
    • onTypeException

      boolean onTypeException(TypeResolver.TypeException e)
      Called with the exception thrown during type resolution. Returns whether a handler was found.
    • handleCompileException

      boolean handleCompileException(@Nullable CompileException e)
      Called with the exception thrown during validation, or null if no exception was thrown. Returns whether a handler was found.