Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Binary ¶
*
- Node with two children. Used for binary expressions, closures, types,
- RANGE, SEND and other two-argument statements. *
- LAMBDA content is: functype funcbody
- RANGE content is: init block
- SEND content is: channel expr
func (*Binary) WriteTo ¶
func (b *Binary) WriteTo(out io.StringWriter)
type FuncDecl ¶
type FuncDecl struct { Atom // always token.FUNC Recv *List // nil for functions, non-nil for methods Name Node Type Node // *ast.FunctType or *ast.GenericType Body *List }
func (*FuncDecl) WriteTo ¶
func (f *FuncDecl) WriteTo(out io.StringWriter)
type GenericType ¶
func (*GenericType) At ¶
func (g *GenericType) At(i int) (child Node)
func (*GenericType) End ¶
func (g *GenericType) End() token.Pos
func (*GenericType) Len ¶
func (g *GenericType) Len() int
func (*GenericType) String ¶
func (g *GenericType) String() string
func (*GenericType) WriteTo ¶
func (g *GenericType) WriteTo(out io.StringWriter)
type List ¶
*
- List of nodes. Used for all variable-sized array of nodes,
- and also for many fixed-size array of nodes, including:
- BLOCK, CALL, COMPOSITE_LIT, FOR, IF, INDEX, RETURN, SELECT, SWITCH. *
- BLOCK content is: [stmt0 [stmt1 [...]]
- CALL content is: fun [arg0 [arg1 [...]]]
- COMPOSITE_LIT content is: type [elem0 [elem1 [...]]]
- FOR content is: init cond post block
- IF content is: init cond then else
- INDEX content is: expr [arg0 [arg1 [...]]]
- RETURN content is: [expr0 [expr1 [...]]]
- SELECT content is: [clause0 [clause1 [...]]
- SWITCH content is: init expr [case0 [case1 [...]]
func (*List) WriteTo ¶
func (l *List) WriteTo(out io.StringWriter)
type Unary ¶
*
- Node with one children. Used for unary expressions, types,
- DEC, DEFER, GO, GOTO, INC and other one-argument statements.
func (*Unary) WriteTo ¶
func (u *Unary) WriteTo(out io.StringWriter)
Click to show internal directories.
Click to hide internal directories.