Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assign ¶
type Assign struct {
LHS []ast.Expression
RHS []ast.Expression
Token token.Token
TokenPos core.Pos
}
Assign represents an assignment statement.
func (*Assign) StatementNode ¶
func (s *Assign) StatementNode()
type Block ¶
Block represents a block statement.
func (*Block) StatementNode ¶
func (s *Block) StatementNode()
type Branch ¶
Branch represents a branch statement.
func (*Branch) StatementNode ¶
func (s *Branch) StatementNode()
type Defer ¶
type Defer struct {
DeferPos core.Pos
Call ast.Expression
}
Defer represents a defer statement.
func (*Defer) StatementNode ¶
func (s *Defer) StatementNode()
type Empty ¶
Empty represents an empty statement.
func (*Empty) StatementNode ¶
func (s *Empty) StatementNode()
type Export ¶
type Export struct {
ExportPos core.Pos
Result ast.Expression
}
Export represents an export statement.
func (*Export) StatementNode ¶
func (s *Export) StatementNode()
type Expression ¶
type Expression struct {
Expr ast.Expression
}
Expression represents an expression statement.
func (*Expression) End ¶
func (s *Expression) End() core.Pos
End returns the position of first character immediately after the node.
func (*Expression) Pos ¶
func (s *Expression) Pos() core.Pos
Pos returns the position of first character belonging to the node.
func (*Expression) StatementNode ¶
func (s *Expression) StatementNode()
func (*Expression) String ¶
func (s *Expression) String() string
type For ¶
type For struct {
ForPos core.Pos
Init ast.Statement
Cond ast.Expression
Post ast.Statement
Body *Block
}
For represents a for statement.
func (*For) StatementNode ¶
func (s *For) StatementNode()
type ForIn ¶
type ForIn struct {
ForPos core.Pos
Key ast.Identifier
Value ast.Identifier
Iterable ast.Expression
Body *Block
}
ForIn represents a for-in statement.
func (*ForIn) StatementNode ¶
func (s *ForIn) StatementNode()
type If ¶
type If struct {
IfPos core.Pos
Init ast.Statement
Cond ast.Expression
Body *Block
Else ast.Statement // else branch; or nil
}
If represents an if statement.
func (*If) StatementNode ¶
func (s *If) StatementNode()
type IncDec ¶
IncDec represents increment or decrement statement.
func (*IncDec) StatementNode ¶
func (s *IncDec) StatementNode()
type Invalid ¶
Invalid represents invalid statement.
func (*Invalid) StatementNode ¶
func (s *Invalid) StatementNode()
type Return ¶
type Return struct {
ReturnPos core.Pos
Result ast.Expression
}
Return represents a return statement.
func (*Return) StatementNode ¶
func (s *Return) StatementNode()