Expand description
Bounded, lossless TypeScript 7 and TSX syntax layered on JavaScript.
ECMAScript productions remain sim_codec_javascript::Node values. This
crate adds only TypeScript/TSX notation and deliberately has no checker,
compiler, lowering pipeline, module resolver, or runtime model.
Structs§
- Annotation
Reference - A retained reference to erased annotation syntax.
- Diagnostic
- Deterministic located frontend failure.
- Evaluation
Gap - A located reason why syntax cannot be erased without a compiler decision.
- Limits
- Resource limits for the extension scan.
- Lowered
Type Script - An admitted JavaScript graph plus lossless TypeScript provenance.
- Syntax
Tree - Complete lossless composed syntax tree.
Enums§
- Diagnostic
Code - Stable diagnostic category.
- Language
- TypeScript or TSX input mode.
- Syntax
Kind - TypeScript-only concrete syntax category.
- Syntax
Node - A syntax node in the composed tree.
Constants§
- TYPESCRIPT_
AUTHORITY - Immutable upstream syntax authority for the frozen release.
- TYPESCRIPT_
CODEC_ ID - Stable local id used before a host assigns
codec/typescriptan id. - TYPESCRIPT_
FROZEN_ ON - Date on which the syntax identity was frozen.
- TYPESCRIPT_
TEST_ IDENTITY - Frozen syntax/test identity.
- TYPESCRIPT_
VERSION - Frozen language release.
Functions§
- decode_
typescript - Decode admitted TypeScript to its direct JavaScript graph.
- decode_
typescript_ located - Decode admitted TypeScript with a root source location.
- decode_
typescript_ tree - Decode admitted TypeScript into a recursively located JavaScript tree.
- encode_
typescript - Canonically encode JavaScript forms as TypeScript-compatible source, with tagged fallback.
- lower_
typescript - Apply the literal “requires no compiler decision” predicate and lower directly.
- parse_
module - Parse a TypeScript module.
- parse_
module_ with_ limits - Parse a TypeScript module with explicit bounds.
- parse_
tsx - Parse a TSX module.
- parse_
tsx_ with_ limits - Parse a TSX module with explicit bounds.