Lines Matching defs:Config
55 Config
94 func (p *printer) init(cfg *Config, fset *token.FileSet, nodeSizes map[ast.Node]int) {
95 p.Config = *cfg
222 n := p.Config.Indent + p.indent // include base indentation
271 if p.Config.Mode&SourcePos != 0 {
1276 // A Config node controls the output of Fprint.
1277 type Config struct {
1284 func (cfg *Config) fprint(output io.Writer, fset *token.FileSet, node interface{}, nodeSizes map[ast.Node]int) (err error) {
1345 func (cfg *Config) Fprint(output io.Writer, fset *token.FileSet, node interface{}) error {
1350 // It calls Config.Fprint with default settings.
1355 return (&Config{Tabwidth: 8}).Fprint(output, fset, node)