Documentation
¶
Index ¶
- type AsyncStmt
- type Block
- type BreakStmt
- type Expr
- func (e *Expr) AssertAsyncStmt() *Expr
- func (e *Expr) AssertBreakStmt() *Expr
- func (e *Expr) AssertReturnStmt() *Expr
- func (e *Expr) AssertStmtType() *Expr
- func (e *Expr) ToGoASTExpr() (goAST.Expr, error)
- func (e *Expr) ToGoASTNode() (goAST.Node, error)
- func (e *Expr) ToGoASTStmt() (goAST.Stmt, error)
- type IStmt
- type Loop
- type Matcher
- type MultiBranch
- type ReturnStmt
- type TwoBranch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Expr ¶
type Expr struct { Raw string IsBreakStmt bool IsRetrunStmt bool IsAsyncStmt bool BreakStmt *BreakStmt ReturnStmt *ReturnStmt AsyncStmt *AsyncStmt }
func (*Expr) AssertAsyncStmt ¶
func (*Expr) AssertBreakStmt ¶
func (*Expr) AssertReturnStmt ¶
func (*Expr) AssertStmtType ¶
type MultiBranch ¶
func (*MultiBranch) ToGoASTNode ¶
func (mb *MultiBranch) ToGoASTNode() (goAST.Node, error)
func (*MultiBranch) ToGoASTStmt ¶
func (mb *MultiBranch) ToGoASTStmt() (goAST.Stmt, error)
type ReturnStmt ¶
type ReturnStmt struct {
Expr string
}
Click to show internal directories.
Click to hide internal directories.