Logo Xantham

Context Type

Everything a pass may reach for, created once per run by `Bootstrap.start`. Passes never create programs; the session here is the only wire access they have.

Record fields

Record Field Description

Config

Full Usage: Config

Field type: GeneratorConfig
Field type: GeneratorConfig

EntryFile

Full Usage: EntryFile

Field type: string

Absolute path of the declaration entry point the program was created over.

Field type: string

PackageDir

Full Usage: PackageDir

Field type: string

Absolute path of the package being generated from.

Field type: string

PackageName

Full Usage: PackageName

Field type: string

The `name` field of the package manifest, or the directory name without one.

Field type: string

Session

Full Usage: Session

Field type: Session<TscMailbox>

The bound snapshot and project over the batching mailbox. Pure passes never touch it, which is what lets their tests fabricate a `Context` without a live compiler.

Field type: Session<TscMailbox>

Type something to start searching.