Compiler

object Compiler
Companion
class
class Object
trait Matchable
class Any

Type members

Classlikes

case class Settings

Setting of the Compiler instance.

Setting of the Compiler instance.

Companion
object
object Settings
Companion
class

Value members

Concrete methods

def make(appClassloader: ClassLoader)(implicit settings: Settings): Compiler

Create a new instance of the compiler using the the classloader of the application.

Create a new instance of the compiler using the the classloader of the application.

Usuage:

import scala.quoted.staging._
given Compiler = Compiler.make(getClass.getClassLoader)
Value Params
appClassloader

classloader of the application that generated the quotes

settings

compiler settings

Returns

A new instance of the compiler