com.eed3si9n.eval.EvalReporter.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eval_3.3.3 Show documentation
Show all versions of eval_3.3.3 Show documentation
Eval evaluates Scala code
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