Versions in this module Expand all Collapse all v0 v0.1.0 Sep 26, 2023 Changes in this version + type ArrayLiteral struct + LeftBracket file.Idx + RightBracket file.Idx + Value []Expression + func (self *ArrayLiteral) Idx0() file.Idx + func (self *ArrayLiteral) Idx1() file.Idx + type ArrayPattern struct + Elements []Expression + LeftBracket file.Idx + Rest Expression + RightBracket file.Idx + func (self *ArrayPattern) Idx0() file.Idx + func (self *ArrayPattern) Idx1() file.Idx + type ArrowFunctionLiteral struct + Async bool + Body ConciseBody + DeclarationList []*VariableDeclaration + ParameterList *ParameterList + Source string + Start file.Idx + func (self *ArrowFunctionLiteral) Idx0() file.Idx + func (self *ArrowFunctionLiteral) Idx1() file.Idx + type AssignExpression struct + Left Expression + Operator token.Token + Right Expression + func (self *AssignExpression) Idx0() file.Idx + func (self *AssignExpression) Idx1() file.Idx + type AwaitExpression struct + Argument Expression + Await file.Idx + func (self *AwaitExpression) Idx0() file.Idx + func (self *AwaitExpression) Idx1() file.Idx + type BadExpression struct + From file.Idx + To file.Idx + func (self *BadExpression) Idx0() file.Idx + func (self *BadExpression) Idx1() file.Idx + type BadStatement struct + From file.Idx + To file.Idx + func (self *BadStatement) Idx0() file.Idx + func (self *BadStatement) Idx1() file.Idx + type BinaryExpression struct + Comparison bool + Left Expression + Operator token.Token + Right Expression + func (self *BinaryExpression) Idx0() file.Idx + func (self *BinaryExpression) Idx1() file.Idx + type Binding struct + Initializer Expression + Target BindingTarget + func (self *Binding) Idx0() file.Idx + func (self *Binding) Idx1() file.Idx + type BindingTarget interface + type BlockStatement struct + LeftBrace file.Idx + List []Statement + RightBrace file.Idx + func (self *BlockStatement) Idx0() file.Idx + func (self *BlockStatement) Idx1() file.Idx + type BooleanLiteral struct + Idx file.Idx + Literal string + Value bool + func (self *BooleanLiteral) Idx0() file.Idx + func (self *BooleanLiteral) Idx1() file.Idx + type BracketExpression struct + Left Expression + LeftBracket file.Idx + Member Expression + RightBracket file.Idx + func (self *BracketExpression) Idx0() file.Idx + func (self *BracketExpression) Idx1() file.Idx + type BranchStatement struct + Idx file.Idx + Label *Identifier + Token token.Token + func (self *BranchStatement) Idx0() file.Idx + func (self *BranchStatement) Idx1() file.Idx + type CallExpression struct + ArgumentList []Expression + Callee Expression + LeftParenthesis file.Idx + RightParenthesis file.Idx + func (self *CallExpression) Idx0() file.Idx + func (self *CallExpression) Idx1() file.Idx + type CaseStatement struct + Case file.Idx + Consequent []Statement + Test Expression + func (self *CaseStatement) Idx0() file.Idx + func (self *CaseStatement) Idx1() file.Idx + type CatchStatement struct + Body *BlockStatement + Catch file.Idx + Parameter BindingTarget + func (self *CatchStatement) Idx0() file.Idx + func (self *CatchStatement) Idx1() file.Idx + type ClassDeclaration struct + Class *ClassLiteral + func (self *ClassDeclaration) Idx0() file.Idx + func (self *ClassDeclaration) Idx1() file.Idx + type ClassElement interface + type ClassLiteral struct + Body []ClassElement + Class file.Idx + Name *Identifier + RightBrace file.Idx + Source string + SuperClass Expression + func (self *ClassLiteral) Idx0() file.Idx + func (self *ClassLiteral) Idx1() file.Idx + type ClassStaticBlock struct + Block *BlockStatement + DeclarationList []*VariableDeclaration + Source string + Static file.Idx + func (self *ClassStaticBlock) Idx0() file.Idx + func (self *ClassStaticBlock) Idx1() file.Idx + type ConciseBody interface + type ConditionalExpression struct + Alternate Expression + Consequent Expression + Test Expression + func (self *ConditionalExpression) Idx0() file.Idx + func (self *ConditionalExpression) Idx1() file.Idx + type DebuggerStatement struct + Debugger file.Idx + func (self *DebuggerStatement) Idx0() file.Idx + func (self *DebuggerStatement) Idx1() file.Idx + type DoWhileStatement struct + Body Statement + Do file.Idx + RightParenthesis file.Idx + Test Expression + func (self *DoWhileStatement) Idx0() file.Idx + func (self *DoWhileStatement) Idx1() file.Idx + type DotExpression struct + Identifier Identifier + Left Expression + func (self *DotExpression) Idx0() file.Idx + func (self *DotExpression) Idx1() file.Idx + type EmptyStatement struct + Semicolon file.Idx + func (self *EmptyStatement) Idx0() file.Idx + func (self *EmptyStatement) Idx1() file.Idx + type Expression interface + type ExpressionBody struct + Expression Expression + func (self *ExpressionBody) Idx0() file.Idx + func (self *ExpressionBody) Idx1() file.Idx + type ExpressionStatement struct + Expression Expression + func (self *ExpressionStatement) Idx0() file.Idx + func (self *ExpressionStatement) Idx1() file.Idx + type FieldDefinition struct + Computed bool + Idx file.Idx + Initializer Expression + Key Expression + Static bool + func (self *FieldDefinition) Idx0() file.Idx + func (self *FieldDefinition) Idx1() file.Idx + type ForDeclaration struct + Idx file.Idx + IsConst bool + Target BindingTarget + func (self *ForDeclaration) Idx0() file.Idx + func (self *ForDeclaration) Idx1() file.Idx + type ForInStatement struct + Body Statement + For file.Idx + Into ForInto + Source Expression + func (self *ForInStatement) Idx0() file.Idx + func (self *ForInStatement) Idx1() file.Idx + type ForInto interface + type ForIntoExpression struct + Expression Expression + func (self *ForIntoExpression) Idx0() file.Idx + func (self *ForIntoExpression) Idx1() file.Idx + type ForIntoVar struct + Binding *Binding + func (self *ForIntoVar) Idx0() file.Idx + func (self *ForIntoVar) Idx1() file.Idx + type ForLoopInitializer interface + type ForLoopInitializerExpression struct + Expression Expression + func (self *ForLoopInitializerExpression) Idx0() file.Idx + func (self *ForLoopInitializerExpression) Idx1() file.Idx + type ForLoopInitializerLexicalDecl struct + LexicalDeclaration LexicalDeclaration + func (self *ForLoopInitializerLexicalDecl) Idx0() file.Idx + func (self *ForLoopInitializerLexicalDecl) Idx1() file.Idx + type ForLoopInitializerVarDeclList struct + List []*Binding + Var file.Idx + func (self *ForLoopInitializerVarDeclList) Idx0() file.Idx + func (self *ForLoopInitializerVarDeclList) Idx1() file.Idx + type ForOfStatement struct + Body Statement + For file.Idx + Into ForInto + Source Expression + func (self *ForOfStatement) Idx0() file.Idx + func (self *ForOfStatement) Idx1() file.Idx + type ForStatement struct + Body Statement + For file.Idx + Initializer ForLoopInitializer + Test Expression + Update Expression + func (self *ForStatement) Idx0() file.Idx + func (self *ForStatement) Idx1() file.Idx + type FunctionDeclaration struct + Function *FunctionLiteral + func (self *FunctionDeclaration) Idx0() file.Idx + func (self *FunctionDeclaration) Idx1() file.Idx + type FunctionLiteral struct + Async bool + Body *BlockStatement + DeclarationList []*VariableDeclaration + Function file.Idx + Generator bool + Name *Identifier + ParameterList *ParameterList + Source string + func (self *FunctionLiteral) Idx0() file.Idx + func (self *FunctionLiteral) Idx1() file.Idx + type Identifier struct + Idx file.Idx + Name unistring.String + func (self *Identifier) Idx0() file.Idx + func (self *Identifier) Idx1() file.Idx + type IfStatement struct + Alternate Statement + Consequent Statement + If file.Idx + Test Expression + func (self *IfStatement) Idx0() file.Idx + func (self *IfStatement) Idx1() file.Idx + type LabelledStatement struct + Colon file.Idx + Label *Identifier + Statement Statement + func (self *LabelledStatement) Idx0() file.Idx + func (self *LabelledStatement) Idx1() file.Idx + type LexicalDeclaration struct + Idx file.Idx + List []*Binding + Token token.Token + func (self *LexicalDeclaration) Idx0() file.Idx + func (self *LexicalDeclaration) Idx1() file.Idx + type MetaProperty struct + Idx file.Idx + Meta *Identifier + Property *Identifier + func (self *MetaProperty) Idx0() file.Idx + func (self *MetaProperty) Idx1() file.Idx + type MethodDefinition struct + Body *FunctionLiteral + Computed bool + Idx file.Idx + Key Expression + Kind PropertyKind + Static bool + func (self *MethodDefinition) Idx0() file.Idx + func (self *MethodDefinition) Idx1() file.Idx + type NewExpression struct + ArgumentList []Expression + Callee Expression + LeftParenthesis file.Idx + New file.Idx + RightParenthesis file.Idx + func (self *NewExpression) Idx0() file.Idx + func (self *NewExpression) Idx1() file.Idx + type Node interface + Idx0 func() file.Idx + Idx1 func() file.Idx + type NullLiteral struct + Idx file.Idx + Literal string + func (self *NullLiteral) Idx0() file.Idx + func (self *NullLiteral) Idx1() file.Idx + type NumberLiteral struct + Idx file.Idx + Literal string + Value interface{} + func (self *NumberLiteral) Idx0() file.Idx + func (self *NumberLiteral) Idx1() file.Idx + type ObjectLiteral struct + LeftBrace file.Idx + RightBrace file.Idx + Value []Property + func (self *ObjectLiteral) Idx0() file.Idx + func (self *ObjectLiteral) Idx1() file.Idx + type ObjectPattern struct + LeftBrace file.Idx + Properties []Property + Rest Expression + RightBrace file.Idx + func (self *ObjectPattern) Idx0() file.Idx + func (self *ObjectPattern) Idx1() file.Idx + type Optional struct + type OptionalChain struct + type ParameterList struct + Closing file.Idx + List []*Binding + Opening file.Idx + Rest Expression + func (self *ParameterList) Idx0() file.Idx + func (self *ParameterList) Idx1() file.Idx + type Pattern interface + type PrivateDotExpression struct + Identifier PrivateIdentifier + Left Expression + func (self *PrivateDotExpression) Idx0() file.Idx + func (self *PrivateDotExpression) Idx1() file.Idx + type PrivateIdentifier struct + type Program struct + Body []Statement + DeclarationList []*VariableDeclaration + File *file.File + func (self *Program) Idx0() file.Idx + func (self *Program) Idx1() file.Idx + type Property interface + type PropertyKeyed struct + Computed bool + Key Expression + Kind PropertyKind + Value Expression + func (self *PropertyKeyed) Idx0() file.Idx + func (self *PropertyKeyed) Idx1() file.Idx + type PropertyKind string + const PropertyKindGet + const PropertyKindMethod + const PropertyKindSet + const PropertyKindValue + type PropertyShort struct + Initializer Expression + Name Identifier + func (self *PropertyShort) Idx0() file.Idx + func (self *PropertyShort) Idx1() file.Idx + type RegExpLiteral struct + Flags string + Idx file.Idx + Literal string + Pattern string + func (self *RegExpLiteral) Idx0() file.Idx + func (self *RegExpLiteral) Idx1() file.Idx + type ReturnStatement struct + Argument Expression + Return file.Idx + func (self *ReturnStatement) Idx0() file.Idx + func (self *ReturnStatement) Idx1() file.Idx + type SequenceExpression struct + Sequence []Expression + func (self *SequenceExpression) Idx0() file.Idx + func (self *SequenceExpression) Idx1() file.Idx + type SpreadElement struct + type Statement interface + type StringLiteral struct + Idx file.Idx + Literal string + Value unistring.String + func (self *StringLiteral) Idx0() file.Idx + func (self *StringLiteral) Idx1() file.Idx + type SuperExpression struct + Idx file.Idx + func (self *SuperExpression) Idx0() file.Idx + func (self *SuperExpression) Idx1() file.Idx + type SwitchStatement struct + Body []*CaseStatement + Default int + Discriminant Expression + RightBrace file.Idx + Switch file.Idx + func (self *SwitchStatement) Idx0() file.Idx + func (self *SwitchStatement) Idx1() file.Idx + type TemplateElement struct + Idx file.Idx + Literal string + Parsed unistring.String + Valid bool + func (self *TemplateElement) Idx0() file.Idx + func (self *TemplateElement) Idx1() file.Idx + type TemplateLiteral struct + CloseQuote file.Idx + Elements []*TemplateElement + Expressions []Expression + OpenQuote file.Idx + Tag Expression + func (self *TemplateLiteral) Idx0() file.Idx + func (self *TemplateLiteral) Idx1() file.Idx + type ThisExpression struct + Idx file.Idx + func (self *ThisExpression) Idx0() file.Idx + func (self *ThisExpression) Idx1() file.Idx + type ThrowStatement struct + Argument Expression + Throw file.Idx + func (self *ThrowStatement) Idx0() file.Idx + func (self *ThrowStatement) Idx1() file.Idx + type TryStatement struct + Body *BlockStatement + Catch *CatchStatement + Finally *BlockStatement + Try file.Idx + func (self *TryStatement) Idx0() file.Idx + func (self *TryStatement) Idx1() file.Idx + type UnaryExpression struct + Idx file.Idx + Operand Expression + Operator token.Token + Postfix bool + func (self *UnaryExpression) Idx0() file.Idx + func (self *UnaryExpression) Idx1() file.Idx + type VariableDeclaration struct + List []*Binding + Var file.Idx + func (self *VariableDeclaration) Idx0() file.Idx + func (self *VariableDeclaration) Idx1() file.Idx + type VariableStatement struct + List []*Binding + Var file.Idx + func (self *VariableStatement) Idx0() file.Idx + func (self *VariableStatement) Idx1() file.Idx + type WhileStatement struct + Body Statement + Test Expression + While file.Idx + func (self *WhileStatement) Idx0() file.Idx + func (self *WhileStatement) Idx1() file.Idx + type WithStatement struct + Body Statement + Object Expression + With file.Idx + func (self *WithStatement) Idx0() file.Idx + func (self *WithStatement) Idx1() file.Idx + type YieldExpression struct + Argument Expression + Delegate bool + Yield file.Idx + func (self *YieldExpression) Idx0() file.Idx + func (self *YieldExpression) Idx1() file.Idx