ObjectCodeWrapper

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

Script code wrapper compatible with Scala 2 and JS native members

When using Scala 3 or/and not using JS native prefer ClassCodeWrapper, since it prevents deadlocks when running threads from script

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