Class ScalaVisitorOrderRecorder

java.lang.Object
io.micronaut.scala.processing.test.ScalaVisitorOrderRecorder

public final class ScalaVisitorOrderRecorder extends Object
Shared recorder for Scala visitor-order tests.
  • Method Details

    • withRecording

      public static <T> T withRecording(Supplier<T> supplier)
      Executes a compilation with visitor-order recording enabled.
      Type Parameters:
      T - The result type
      Parameters:
      supplier - The compilation work
      Returns:
      The supplier result
    • record

      public static void record(String event)
      Records a visitor event.
      Parameters:
      event - The event
    • events

      public static List<String> events()
      Returns the recorded events.
      Returns:
      The recorded events