Documentation
¶
Overview ¶
Package printer implements printing of AST nodes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommentedNode ¶
type CommentedNode struct {
Node any
Comments []*ast.CommentGroup
}
A CommentedNode bundles an AST node and corresponding comments. It may be provided as argument to any of the Fprint functions.
type CommentedNodes ¶
type CommentedNodes struct {
Node any
CommentedStmts map[js.Stmt]*ast.CommentGroup
}
by XGo
type Config ¶
type Config struct {
Mode Mode // default: 0
Tabwidth int // default: 8
Indent int // default: 0 (all code is indented at least by this much)
}
A Config node controls the output of Fprint.
Click to show internal directories.
Click to hide internal directories.