ClassCodeWrapper

scala.build.internal.ClassCodeWrapper
case class ClassCodeWrapper(scalaVersion: String, log: String => Unit) extends CodeWrapper

Script code wrapper that solves problem of deadlocks when using threads. The code is placed in a class instance constructor, the created object is kept in 'mainObjectCode'.script to support running interconnected scripts using Scala CLI

Incompatible with Scala 2 - it uses Scala 3 feature 'export'
Incompatible with native JS members - the wrapper is a class

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class CodeWrapper
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def apply(code: String, pkgName: Seq[Name], indexedWrapperName: Name, extraCode: String, scriptPath: String): (String, String)
override def mainClassObject(className: Name): Name

Attributes

Definition Classes
CodeWrapper

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def wrapCode(pkgName: Seq[Name], indexedWrapperName: Name, code: String, scriptPath: String): (String, WrapperParams)

Attributes

Inherited from:
CodeWrapper