Versions in this module Expand all Collapse all v0 v0.1.1 Nov 15, 2026 Changes in this version + func HasNonNullResult(e Expr) bool type Binding + EvalReach bool + NonNullInit bool + Reassigned bool + func (b *Binding) HoldsNonNull() bool v0.1.0 Nov 9, 2026 Changes in this version + const InvalidCooked + const MaxNestingDepth + func DecodeWTF8(s string) []uint16 + func Dump(n Node) string + func Inspect(n Node, f func(Node) bool) + func IsASCII(s string) bool + func Walk(v Visitor, n Node) + type ArrayLit struct + Elems []Expr + type ArrayPattern struct + Elems []Pattern + Rest Pattern + type AssignExpr struct + Op Token + ParenTarget bool + Target Pattern + Value Expr + type AssignPattern struct + Default Expr + Target Pattern + type AwaitExpr struct + X Expr + type BigIntLit struct + Digits string + type BinaryExpr struct + Op Token + X Expr + Y Expr + type BindKind uint8 + const BindArgs + const BindCatch + const BindClass + const BindConst + const BindFuncName + const BindFunction + const BindHidden + const BindImport + const BindImportNS + const BindLet + const BindParam + const BindPrivate + const BindVar + func (k BindKind) IsLexical() bool + func (k BindKind) String() string + type Binding struct + AnnexB bool + Assigned bool + Captured bool + Exported bool + Kind BindKind + Name string + NeedsTDZ bool + Pos int + Scope *Scope + Slot int + type BlockStmt struct + Body []Stmt + Scope *Scope + type BoolLit struct + Value bool + type BreakStmt struct + Label *Ident + type CallExpr struct + Args []Expr + Callee Expr + Optional bool + type Class struct + BrandBinding *Binding + Ctor *Function + Fields *Function + FieldsBinding *Binding + Members []*ClassMember + Name *Ident + NameBinding *Binding + Scope *Scope + Static *Function + Super Expr + type ClassDecl struct + Class *Class + type ClassMember struct + Block *Function + Body *BlockStmt + Computed bool + Key Expr + KeyBinding *Binding + Kind ClassMemberKind + Static bool + Value Expr + type ClassMemberKind uint8 + const ClassField + const ClassGetter + const ClassMethod + const ClassSetter + const ClassStaticBlock + type CondExpr struct + Alt Expr + Cons Expr + Test Expr + type ContinueStmt struct + Label *Ident + type DebuggerStmt struct + type DeclKind uint8 + const DeclConst + const DeclLet + const DeclVar + func (k DeclKind) String() string + type Declarator struct + Init Expr + Target Pattern + type DoWhileStmt struct + Body Stmt + Cond Expr + type EmptyStmt struct + type Error struct + Col int + Line int + Msg string + Name string + Pos int + func (e *Error) Error() string + func (e *Error) Message() string + type Eval struct + AnnexB []string + Env *EvalEnv + FieldsBinding *Binding + Func *Function + Funcs []*FuncDecl + HasDirectEval bool + Levels []*Scope + Module bool + Strict bool + This *Function + Vars []string + func ParseEval(name, src string, env *EvalEnv, opts Options) (*Eval, error) + type EvalEnv struct + Derived bool + Fields int + FuncKind FuncKind + InParams bool + Levels []EvalLevel + Module bool + Strict bool + This int + Var int + type EvalLevel interface + Binding func(i int) (name string, kind BindKind, tdz bool) + Kind func() ScopeKind + Len func() int + Slot func(name string) int + type ExportAll struct + As *Ident + Source *StringLit + type ExportDecl struct + Decl Stmt + type ExportDefault struct + Decl Node + type ExportEntry struct + Binding *Binding + Local string + Name string + Pos int + type ExportNamed struct + Source *StringLit + Specs []*ExportSpec + type ExportSpec struct + Exported *Ident + Local *Ident + type Expr interface + type ExprStmt struct + X Expr + type File struct + Name string + Src string + func (f *File) Line(pos int) int + func (f *File) LineCount() int + func (f *File) Position(pos int) (line, col int) + type ForInOfStmt struct + Await bool + Body Stmt + Left Node + Of bool + Right Expr + Scope *Scope + type ForStmt struct + Body Stmt + Cond Expr + Init Node + Scope *Scope + Update Expr + type FuncDecl struct + Func *Function + type FuncKind uint8 + const FuncArrow + const FuncClassConstructor + const FuncClassFields + const FuncClassStatic + const FuncGetter + const FuncMethod + const FuncNormal + const FuncSetter + type Function struct + Body *BlockStmt + CalleeBinding *Binding + DefaultCtor bool + Derived bool + ExprBody Expr + HasDirectEval bool + HasRest bool + HasSimpleParams bool + HomeBinding *Binding + IsArrow bool + IsAsync bool + IsGenerator bool + IsStrict bool + Kind FuncKind + Length int + Name *Ident + NewTargetBinding *Binding + ParamCount int + Params []Pattern + Rest Pattern + Scope *Scope + SelfBinding *Binding + ThisBinding *Binding + UsesArguments bool + UsesThis bool + func (fn *Function) ArgumentsBinding() *Binding + type Ident struct + Binding *Binding + Name string + func BoundNames(pat Pattern) []*Ident + type IfStmt struct + Cond Expr + Else Stmt + Then Stmt + type ImportCall struct + Source Expr + type ImportDecl struct + Default *Ident + Namespace *Ident + Source *StringLit + Specs []*ImportSpec + type ImportEntry struct + Binding *Binding + Name string + Namespace bool + Pos int + Request int + type ImportMeta struct + type ImportSpec struct + Imported *Ident + Local *Ident + type LabeledStmt struct + Body Stmt + Label *Ident + type LogicalExpr struct + Op Token + X Expr + Y Expr + type MemberExpr struct + Computed bool + Object Expr + Optional bool + Prop Expr + type Module struct + Async bool + Exports []*ExportEntry + HasDirectEval bool + Imports []*ImportEntry + Reexports []*ReexportEntry + Requests []*ModuleRequest + Stars []*StarExport + func ParseModule(name, src string, opts Options) (*Module, error) + func (m *Module) Export(name string) *Binding + type ModuleRequest struct + Pos int + Specifier string + type NewExpr struct + Args []Expr + Callee Expr + type NewTarget struct + Binding *Binding + type Node interface + Range func() (pos, end int) + type NullLit struct + type NumberLit struct + Value float64 + type ObjectLit struct + Props []*Property + type ObjectPattern struct + Props []*PatternProp + Rest Pattern + type OptChain struct + X Expr + type Options struct + AllowUnsupported bool + EarlyExports bool + Stop func() error + TypeScript bool + type Pattern interface + type PatternProp struct + Computed bool + Key Expr + Value Pattern + type PrivateName struct + Binding *Binding + Name string + type Program struct + Body []Stmt + File *File + Scope *Scope + type PropKind uint8 + const PropCoverInit + const PropGetter + const PropInit + const PropMethod + const PropSetter + const PropShorthand + const PropSpread + type Property struct + Computed bool + Key Expr + Kind PropKind + Value Expr + type ReexportEntry struct + All bool + Import string + Name string + Pos int + Request int + type RegexLit struct + Flags string + Pattern string + type ReturnStmt struct + Result Expr + type Scope struct + Bindings []*Binding + Children []*Scope + Func *Function + Funcs []*FuncDecl + Kind ScopeKind + Node Node + Parent *Scope + func (s *Scope) Lookup(name string) *Binding + func (s *Scope) Resolve(name string) *Binding + type ScopeKind uint8 + const ScopeBlock + const ScopeCatch + const ScopeClass + const ScopeFor + const ScopeFunction + const ScopeModule + const ScopeScript + const ScopeWith + func (k ScopeKind) String() string + type Script struct + HasDirectEval bool + Strict bool + func ParseScript(name, src string, opts Options) (*Script, error) + type SeqExpr struct + Exprs []Expr + type Span struct + End int + Pos int + func (s Span) Range() (pos, end int) + type SpreadElem struct + X Expr + type StarExport struct + Pos int + Request int + type Stmt interface + type StringLit struct + Value string + type SuperExpr struct + type SwitchCase struct + Body []Stmt + Test Expr + type SwitchStmt struct + Cases []*SwitchCase + Disc Expr + Scope *Scope + type TaggedTemplate struct + Quasi *TemplateLit + Tag Expr + type TemplateElement struct + Cooked string + Raw string + type TemplateLit struct + Exprs []Expr + Quasis []TemplateElement + type ThisExpr struct + Binding *Binding + type ThrowStmt struct + X Expr + type Token uint8 + const AddAssign + const AndAssign + const Arrow + const Assign + const BigInt + const BitAnd + const BitNot + const BitOr + const BitXor + const Colon + const Comma + const Dec + const Div + const DivAssign + const Dot + const EOF + const Ellipsis + const Eq + const EscapedWord + const Exp + const ExpAssign + const Gt + const GtEq + const Hash + const Identifier + const Illegal + const Inc + const KwAwait + const KwBreak + const KwCase + const KwCatch + const KwClass + const KwConst + const KwContinue + const KwDebugger + const KwDefault + const KwDelete + const KwDo + const KwElse + const KwEnum + const KwExport + const KwExtends + const KwFalse + const KwFinally + const KwFor + const KwFunction + const KwIf + const KwImplements + const KwImport + const KwIn + const KwInstanceof + const KwInterface + const KwLet + const KwNew + const KwNull + const KwPackage + const KwPrivate + const KwProtected + const KwPublic + const KwReturn + const KwStatic + const KwSuper + const KwSwitch + const KwThis + const KwThrow + const KwTrue + const KwTry + const KwTypeof + const KwVar + const KwVoid + const KwWhile + const KwWith + const KwYield + const LBrace + const LBrack + const LParen + const LogAnd + const LogAndAssign + const LogOr + const LogOrAssign + const Lt + const LtEq + const Minus + const Mul + const MulAssign + const Not + const NotEq + const Nullish + const NullishAssign + const Number + const OrAssign + const Plus + const PrivateIdent + const Question + const QuestionDot + const RBrace + const RBrack + const RParen + const Regex + const Rem + const RemAssign + const Semicolon + const Shl + const ShlAssign + const Shr + const ShrAssign + const StrictEq + const StrictNeq + const String + const SubAssign + const Template + const UShr + const UShrAssign + const XorAssign + func (t Token) IsKeyword() bool + func (t Token) String() string + type TryStmt struct + Block *BlockStmt + CatchScope *Scope + Finalizer *BlockStmt + Handler *BlockStmt + Param Pattern + type UnaryExpr struct + Op Token + X Expr + type UpdateExpr struct + Op Token + Prefix bool + X Expr + type VarDecl struct + Decls []*Declarator + Kind DeclKind + type Visitor interface + Visit func(n Node) Visitor + type WhileStmt struct + Body Stmt + Cond Expr + type WithStmt struct + Body Stmt + Object Expr + Scope *Scope + type YieldExpr struct + Delegate bool + X Expr v0.1.0-alpha.11 Oct 27, 2026