package tasty
- Source
- package.scala
- Alphabetic
- By Inheritance
- tasty
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- implicit final class SafeEq[-T] extends AnyVal
Adds equality operators asserting at compiletime that the RHS is a subtype of the LHS.
- abstract class TastyUniverse extends TastyCore with FlagOps with TypeOps with AnnotationOps with ContextOps with SymbolOps with NameOps with TreeOps
A facade to
scala.tools.nsc.symbtab.SymbolTable
, providing operations that map from the language of TASTy to the nsc compiler, e.g.A facade to
scala.tools.nsc.symbtab.SymbolTable
, providing operations that map from the language of TASTy to the nsc compiler, e.g. to create trees, resolve types and symbols. - class TreeUnpickler[Tasty <: TastyUniverse] extends AnyRef
TreeUnpickler
is responsible for traversing all trees in the "ASTs" section of a TASTy file, which represent the definitions inside the classfile associated with the root class/module.TreeUnpickler
is responsible for traversing all trees in the "ASTs" section of a TASTy file, which represent the definitions inside the classfile associated with the root class/module.TreeUnpickler
will enter the public api of the TASTy file into the symbolTable ofTastyUniverse
. "Public API" includes annotations when they are simple trees.Where possible,
TreeUnpickler
should not directly manipulate values created by the symbolTable, but use operations provided byTastyUniverse
Value Members
- object TastyModes
A static type representing a bitset of modes that affect the interpretation of a TASTy file, such as distinguishing between reading the parents of a class, or an annotation tree.
- object TastyUnpickler
The entry point to TASTy unpickling for nsc, initialises a
TastyUniverse#Context
with the root symbols of a top-level class, then parses the header and names from a TASTy file, before entering symbols from theASTs
section withTreeUnpickler
- object TreeUnpickler
The Scala compiler and reflection APIs.