TastyWriter

dotty.tools.io.FileWriters.TastyWriter
See theTastyWriter companion object
sealed trait TastyWriter

The interface to writing classfiles. GeneratedClassHandler calls these methods to generate the directory and files that are created, and eventually calls close when the writing is complete.

The companion object is responsible for constructing a appropriate and optimal implementation for the supplied settings.

Operations are threadsafe.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def close(): Unit

Close the writer. Behavior is undefined after a call to close.

Close the writer. Behavior is undefined after a call to close.

Attributes

def writeTasty(name: InternalName, bytes: Array[Byte])(using Context): NullableFile

Write a .tasty file.

Write a .tasty file.

Value parameters

name

the internal name of the class, e.g. "scala.Option"

Attributes