Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assignment ¶
func NewAssignment ¶
func (*Assignment) ASTStmt ¶
func (a *Assignment) ASTStmt() ast.Stmt
type Block ¶
Block represents a block of statements wrapped by braces ("{" and "}"). Useful for the Else block of an If statement.
type CaseClause ¶
func NewCaseClause ¶
func NewCaseClause(expr astgen.ASTExpr, body ...astgen.ASTStmt) *CaseClause
func (*CaseClause) ASTStmt ¶
func (c *CaseClause) ASTStmt() ast.Stmt
type Defer ¶
type Defer struct {
Call *expression.CallExpression
}
type Expression ¶
func NewExpression ¶
func NewExpression(expr astgen.ASTExpr) *Expression
func (*Expression) ASTStmt ¶
func (e *Expression) ASTStmt() ast.Stmt
type If ¶
type Range ¶
type Switch ¶
type Switch struct { Init astgen.ASTStmt Expression astgen.ASTExpr Cases []CaseClause }
type TypeSwitch ¶
type TypeSwitch struct { Init astgen.ASTStmt Assign astgen.ASTStmt Cases []CaseClause }
func (*TypeSwitch) ASTStmt ¶
func (t *TypeSwitch) ASTStmt() ast.Stmt
Click to show internal directories.
Click to hide internal directories.