Documentation ¶
Index ¶
- func Format(ast *parser.AST) string
- func HasComments(nodes []node.ParserNode) bool
- type Writer
- func (w *Writer) Block(fn func())
- func (w *Writer) Comments(node node.ParserNode, fn func())
- func (w *Writer) Dedent()
- func (w *Writer) Indent()
- func (w *Writer) LineLength() int
- func (w *Writer) String() string
- func (w *Writer) Write(s string, args ...any)
- func (w *Writer) WriteLine(s string, args ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasComments ¶
func HasComments(nodes []node.ParserNode) bool
Types ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) Comments ¶
func (w *Writer) Comments(node node.ParserNode, fn func())
func (*Writer) LineLength ¶
Click to show internal directories.
Click to hide internal directories.