Documentation
¶
Index ¶
- type AssignmentExpression
- type AssignmentOperator
- type Attr
- type BinaryExpression
- type BinaryOperator
- type CallExpression
- type Declaration
- type Expression
- type ExpressionStatement
- type Extra
- type File
- type Identifier
- type Literal
- type MemberExpression
- type Node
- type NumericLiteral
- type Position
- type Program
- type SourceLocation
- type Statement
- type StringLiteral
- type VariableDeclaration
- type VariableDeclarator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssignmentExpression ¶
type AssignmentExpression struct {
*Attr
Operator AssignmentOperator
Left Expression
Right Expression
}
func (*AssignmentExpression) GetAttr ¶
func (a *AssignmentExpression) GetAttr() *Attr
func (*AssignmentExpression) String ¶
func (a *AssignmentExpression) String() string
type AssignmentOperator ¶
type AssignmentOperator string
type BinaryExpression ¶
type BinaryExpression struct {
*Attr
Operator BinaryOperator
Left Expression
Right Expression
}
func (*BinaryExpression) GetAttr ¶
func (b *BinaryExpression) GetAttr() *Attr
func (*BinaryExpression) String ¶
func (a *BinaryExpression) String() string
type BinaryOperator ¶
type BinaryOperator string
type CallExpression ¶
type CallExpression struct {
*Attr
Callee Expression
Arguments []Expression
}
func (*CallExpression) GetAttr ¶
func (c *CallExpression) GetAttr() *Attr
func (*CallExpression) String ¶
func (c *CallExpression) String() string
type Declaration ¶
type Declaration interface {
Statement
// contains filtered or unexported methods
}
type Expression ¶
type Expression interface {
Node
// contains filtered or unexported methods
}
type ExpressionStatement ¶
type ExpressionStatement struct {
*Attr
Expression Expression
}
func (*ExpressionStatement) GetAttr ¶
func (e *ExpressionStatement) GetAttr() *Attr
func (*ExpressionStatement) String ¶
func (e *ExpressionStatement) String() string
type File ¶
func (*File) UnmarshalJSON ¶
type Identifier ¶
func (*Identifier) GetAttr ¶
func (i *Identifier) GetAttr() *Attr
func (*Identifier) String ¶
func (i *Identifier) String() string
type Literal ¶
type Literal interface {
Expression
// contains filtered or unexported methods
}
type MemberExpression ¶
type MemberExpression struct {
*Attr
Object Expression
Property Expression
Computed bool
}
func (*MemberExpression) GetAttr ¶
func (m *MemberExpression) GetAttr() *Attr
func (*MemberExpression) String ¶
func (e *MemberExpression) String() string
type NumericLiteral ¶
TODO: Value is always float64 Can delay conversion and adapt to int vs. float
func (*NumericLiteral) GetAttr ¶
func (n *NumericLiteral) GetAttr() *Attr
func (*NumericLiteral) String ¶
func (n *NumericLiteral) String() string
type SourceLocation ¶
type StringLiteral ¶
func (*StringLiteral) GetAttr ¶
func (s *StringLiteral) GetAttr() *Attr
func (*StringLiteral) String ¶
func (s *StringLiteral) String() string
type VariableDeclaration ¶
type VariableDeclaration struct {
*Attr
Declarations []*VariableDeclarator
Kind string
}
func (*VariableDeclaration) GetAttr ¶
func (v *VariableDeclaration) GetAttr() *Attr
func (*VariableDeclaration) String ¶
func (v *VariableDeclaration) String() string
type VariableDeclarator ¶
type VariableDeclarator struct {
*Attr
ID *Identifier
Init Expression
}
func (*VariableDeclarator) GetAttr ¶
func (v *VariableDeclarator) GetAttr() *Attr
func (*VariableDeclarator) String ¶
func (v *VariableDeclarator) String() string
Click to show internal directories.
Click to hide internal directories.