Versions in this module Expand all Collapse all v0 v0.3.0 Oct 26, 2016 Changes in this version + type CoprocClause struct + Coproc token.Pos + Name *Lit + Stmt *Stmt + func (c *CoprocClause) End() token.Pos + func (c *CoprocClause) Pos() token.Pos type DeclClause + Position token.Pos + Variant string + type ExtGlob struct + Pattern Lit + Token token.Token + func (e *ExtGlob) End() token.Pos + func (e *ExtGlob) Pos() token.Pos type SglQuoted + QuotePos token.Pos v0.2.0 Oct 13, 2016 Changes in this version + func Walk(v Visitor, node Node) + type Visitor interface + Visit func(node Node) (w Visitor) v0.1.0 Sep 19, 2016 Changes in this version + type ArithmExp struct + Left token.Pos + Right token.Pos + Token token.Token + X ArithmExpr + func (a *ArithmExp) End() token.Pos + func (a *ArithmExp) Pos() token.Pos + type ArithmExpr interface + type ArrayExpr struct + List []Word + Lparen token.Pos + Rparen token.Pos + func (a *ArrayExpr) End() token.Pos + func (a *ArrayExpr) Pos() token.Pos + type Assign struct + Append bool + Name *Lit + Value Word + func (a *Assign) End() token.Pos + func (a *Assign) Pos() token.Pos + type BinaryCmd struct + Op token.Token + OpPos token.Pos + X *Stmt + Y *Stmt + func (b *BinaryCmd) End() token.Pos + func (b *BinaryCmd) Pos() token.Pos + type BinaryExpr struct + Op token.Token + OpPos token.Pos + X ArithmExpr + Y ArithmExpr + func (b *BinaryExpr) End() token.Pos + func (b *BinaryExpr) Pos() token.Pos + type Block struct + Lbrace token.Pos + Rbrace token.Pos + Stmts []*Stmt + func (b *Block) End() token.Pos + func (b *Block) Pos() token.Pos + type CStyleLoop struct + Cond ArithmExpr + Init ArithmExpr + Lparen token.Pos + Post ArithmExpr + Rparen token.Pos + func (c *CStyleLoop) End() token.Pos + func (c *CStyleLoop) Pos() token.Pos + type CallExpr struct + Args []Word + func (c *CallExpr) End() token.Pos + func (c *CallExpr) Pos() token.Pos + type CaseClause struct + Case token.Pos + Esac token.Pos + List []*PatternList + Word Word + func (c *CaseClause) End() token.Pos + func (c *CaseClause) Pos() token.Pos + type CmdSubst struct + Backquotes bool + Left token.Pos + Right token.Pos + Stmts []*Stmt + func (c *CmdSubst) End() token.Pos + func (c *CmdSubst) Pos() token.Pos + type Command interface + type Comment struct + Hash token.Pos + Text string + func (c *Comment) End() token.Pos + func (c *Comment) Pos() token.Pos + type DeclClause struct + Assigns []*Assign + Declare token.Pos + Local bool + Opts []Word + func (d *DeclClause) End() token.Pos + func (d *DeclClause) Pos() token.Pos + type Elif struct + CondStmts []*Stmt + Elif token.Pos + Then token.Pos + ThenStmts []*Stmt + type EvalClause struct + Eval token.Pos + Stmt *Stmt + func (e *EvalClause) End() token.Pos + func (e *EvalClause) Pos() token.Pos + type Expansion struct + Op token.Token + Word Word + type File struct + Comments []*Comment + Lines []int + Name string + Stmts []*Stmt + func (f *File) End() token.Pos + func (f *File) Pos() token.Pos + func (f *File) Position(p token.Pos) (pos token.Position) + type ForClause struct + Do token.Pos + DoStmts []*Stmt + Done token.Pos + For token.Pos + Loop Loop + func (f *ForClause) End() token.Pos + func (f *ForClause) Pos() token.Pos + type FuncDecl struct + BashStyle bool + Body *Stmt + Name Lit + Position token.Pos + func (f *FuncDecl) End() token.Pos + func (f *FuncDecl) Pos() token.Pos + type IfClause struct + CondStmts []*Stmt + Elifs []*Elif + Else token.Pos + ElseStmts []*Stmt + Fi token.Pos + If token.Pos + Then token.Pos + ThenStmts []*Stmt + func (c *IfClause) End() token.Pos + func (c *IfClause) Pos() token.Pos + type Index struct + Word Word + type LetClause struct + Exprs []ArithmExpr + Let token.Pos + func (l *LetClause) End() token.Pos + func (l *LetClause) Pos() token.Pos + type Lit struct + Value string + ValuePos token.Pos + func (l *Lit) End() token.Pos + func (l *Lit) Pos() token.Pos + type Loop interface + type Node interface + End func() token.Pos + Pos func() token.Pos + type ParamExp struct + Dollar token.Pos + Exp *Expansion + Ind *Index + Length bool + Param Lit + Repl *Replace + Short bool + func (p *ParamExp) End() token.Pos + func (p *ParamExp) Pos() token.Pos + type ParenExpr struct + Lparen token.Pos + Rparen token.Pos + X ArithmExpr + func (p *ParenExpr) End() token.Pos + func (p *ParenExpr) Pos() token.Pos + type PatternList struct + Op token.Token + OpPos token.Pos + Patterns []Word + Stmts []*Stmt + type ProcSubst struct + Op token.Token + OpPos token.Pos + Rparen token.Pos + Stmts []*Stmt + func (s *ProcSubst) End() token.Pos + func (s *ProcSubst) Pos() token.Pos + type Quoted struct + Parts []WordPart + Quote token.Token + QuotePos token.Pos + func (q *Quoted) End() token.Pos + func (q *Quoted) Pos() token.Pos + type Redirect struct + Hdoc Word + N *Lit + Op token.Token + OpPos token.Pos + Word Word + func (r *Redirect) End() token.Pos + func (r *Redirect) Pos() token.Pos + type Replace struct + All bool + Orig Word + With Word + type SglQuoted struct + Quote token.Pos + Value string + func (q *SglQuoted) End() token.Pos + func (q *SglQuoted) Pos() token.Pos + type Stmt struct + Assigns []*Assign + Background bool + Cmd Command + Negated bool + Position token.Pos + Redirs []*Redirect + func (s *Stmt) End() token.Pos + func (s *Stmt) Pos() token.Pos + type Subshell struct + Lparen token.Pos + Rparen token.Pos + Stmts []*Stmt + func (s *Subshell) End() token.Pos + func (s *Subshell) Pos() token.Pos + type TestClause struct + Left token.Pos + Right token.Pos + X ArithmExpr + func (t *TestClause) End() token.Pos + func (t *TestClause) Pos() token.Pos + type UnaryExpr struct + Op token.Token + OpPos token.Pos + Post bool + X ArithmExpr + func (u *UnaryExpr) End() token.Pos + func (u *UnaryExpr) Pos() token.Pos + type UntilClause struct + CondStmts []*Stmt + Do token.Pos + DoStmts []*Stmt + Done token.Pos + Until token.Pos + func (u *UntilClause) End() token.Pos + func (u *UntilClause) Pos() token.Pos + type WhileClause struct + CondStmts []*Stmt + Do token.Pos + DoStmts []*Stmt + Done token.Pos + While token.Pos + func (w *WhileClause) End() token.Pos + func (w *WhileClause) Pos() token.Pos + type Word struct + Parts []WordPart + func (w *Word) End() token.Pos + func (w *Word) Pos() token.Pos + type WordIter struct + List []Word + Name Lit + func (w *WordIter) End() token.Pos + func (w *WordIter) Pos() token.Pos + type WordPart interface