Expand description
Value model, environment, and type resolution — a port of the reference implementation’s semantics.ts.
Structs§
- ArrV
- Assert
Item - Closure
- Const
Entry - Diag
- Diag
Decl - Env
- EvalErr
- Export
- Func
Entry - MapV
- Member
- NsRefV
- PreValV
- RecInst
- RecType
- Scope
- Slot
- Ty
- Type
Entry - Unit
Decl
Enums§
Functions§
- cmp_
path - Canonical path order (§7.2): segment-wise, indices numerically, names and keys lexicographically, a prefix first.
- compile_
pattern - dot_
spellable - dot-spellable (§3.11, §4.3): identifier-shaped and not a literal keyword
- err
- err_
code - is_rec
- js_
num_ str - ECMAScript Number::toString for finite doubles (shortest round trip)
- json_
str - key_
of_ vec - parse_
path - A path string from a document:
.nameis a member,["…"]a bracketed segment (a map key, or a member the dot cannot spell — the canonical walk, §7.5, decides which is legal where),[n]an index. - path_
str - pattern_
error - read_
json - rec_
members - rec_
type - seg_
text - sort_
diags - §6.7: evaluation- and validation-time diagnostics sort by (path, id), path in canonical order; stable
- subst_
expr - subst_
type - ty
- value_
eq - vec_
combine - vec_
of_ key