Documentation
¶
Overview ¶
Package bootstrapsnapshot serializes deliberately small, data-only subsets of the checked TypeRB IR for temporary compiler bootstrapping. It exposes no compiler object across the process boundary and is not a stable protocol.
Index ¶
- Constants
- type ArrayConstruct
- type ArrayGet
- type ArrayPush
- type ArraySet
- type ArraySize
- type BinaryInstruction
- type Block
- type BooleanLiteral
- type BooleanNot
- type Branch
- type Call
- type ClosureCall
- type ClosureConstruct
- type Field
- type FloatLiteral
- type Function
- type FunctionV4
- type IntegerLiteral
- type Jump
- type Origin
- type Parameter
- type RecordConstruct
- type RecordProject
- type Return
- type SnapshotV2
- type SnapshotV3
- type SnapshotV4
- type Source
- type StringBinary
- type StringIndex
- type StringLiteral
- type StringSize
- type TypeDefinition
- type UnsupportedError
- type Variant
- type VariantConstruct
- type VariantProject
- type VariantTest
- type WriteStatic
- type WriteString
Constants ¶
View Source
const ( Format = "type-rb-bootstrap-snapshot" Version2 = 2 Version3 = 3 Version4 = 4 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArrayConstruct ¶ added in v0.3.48
type BinaryInstruction ¶
type BooleanLiteral ¶
type BooleanNot ¶
type ClosureCall ¶ added in v0.3.48
type ClosureConstruct ¶ added in v0.3.48
type FloatLiteral ¶
type FunctionV4 ¶ added in v0.3.48
type IntegerLiteral ¶
type RecordConstruct ¶
type RecordProject ¶
type SnapshotV2 ¶
type SnapshotV3 ¶
type SnapshotV4 ¶ added in v0.3.48
type SnapshotV4 struct {
Format string `json:"format"`
Version int `json:"version"`
Module string `json:"module"`
EntryFunction string `json:"entryFunction"`
Sources []Source `json:"sources"`
Types []TypeDefinition `json:"types"`
Functions []FunctionV4 `json:"functions"`
}
type StringBinary ¶ added in v0.3.48
type StringIndex ¶ added in v0.3.48
type StringLiteral ¶ added in v0.3.48
type StringSize ¶ added in v0.3.48
type TypeDefinition ¶
type TypeDefinition struct {
Kind string `json:"kind"`
ID string `json:"id"`
Element *string `json:"element,omitempty"`
Parameters *[]string `json:"parameters,omitempty"`
Result *string `json:"result,omitempty"`
Fields *[]Field `json:"fields,omitempty"`
Variants *[]Variant `json:"variants,omitempty"`
}
type UnsupportedError ¶
func (*UnsupportedError) Error ¶
func (e *UnsupportedError) Error() string
type VariantConstruct ¶
type VariantProject ¶
type VariantTest ¶
type WriteStatic ¶
Click to show internal directories.
Click to hide internal directories.