All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.eed3si9n.eval.EvalReporter.scala Maven / Gradle / Ivy

The newest version!
package com.eed3si9n.eval

import dotty.tools.dotc.core.Contexts.Context
import dotty.tools.dotc.reporting.ConsoleReporter
import dotty.tools.dotc.reporting.Diagnostic
import dotty.tools.dotc.reporting.Reporter
import dotty.tools.dotc.reporting.StoreReporter

abstract class EvalReporter extends Reporter

object EvalReporter:
  def console: EvalReporter = ForwardingReporter(ConsoleReporter())
  def store: EvalReporter = ForwardingReporter(StoreReporter())
end EvalReporter

class ForwardingReporter(delegate: Reporter) extends EvalReporter:
  def doReport(dia: Diagnostic)(using Context): Unit = delegate.doReport(dia)
end ForwardingReporter




© 2015 - 2025 Weber Informatics LLC | Privacy Policy