
scala.build.preprocessing.Preprocessor.scala Maven / Gradle / Ivy
package scala.build.preprocessing
import scala.build.Logger
import scala.build.errors.BuildException
import scala.build.input.{Inputs, ScalaCliInvokeData, SingleElement}
import scala.build.options.SuppressWarningOptions
trait Preprocessor {
def preprocess(
input: SingleElement,
logger: Logger,
maybeRecoverOnError: BuildException => Option[BuildException] = e => Some(e),
allowRestrictedFeatures: Boolean,
suppressWarningOptions: SuppressWarningOptions
)(using ScalaCliInvokeData): Option[Either[BuildException, Seq[PreprocessedSource]]]
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy