type go/printer.printer

57 uses

	go/printer (current package)
		nodes.go#L48: func (p *printer) linebreak(line, min int, ws whiteSpace, newSection bool) (nbreaks int) {
		nodes.go#L72: func (p *printer) setComment(g *ast.CommentGroup) {
		nodes.go#L108: func (p *printer) identList(list []*ast.Ident, indent bool) {
		nodes.go#L130: func (p *printer) exprList(prev0 token.Pos, list []ast.Expr, depth int, mode exprListMode, next0 token.Pos, isIncomplete bool) {
		nodes.go#L322: func (p *printer) parameters(fields *ast.FieldList) {
		nodes.go#L385: func (p *printer) signature(params, result *ast.FieldList) {
		nodes.go#L417: func (p *printer) isOneLineFieldList(list []*ast.Field) bool {
		nodes.go#L435: func (p *printer) setLineComment(text string) {
		nodes.go#L439: func (p *printer) fieldList(fields *ast.FieldList, isStruct, isIncomplete bool) {
		nodes.go#L696: func (p *printer) binaryExpr(x *ast.BinaryExpr, prec1, cutoff, depth int) {
		nodes.go#L740: func (p *printer) expr1(expr ast.Expr, prec1, depth int) {
		nodes.go#L1037: func (p *printer) possibleSelectorExpr(expr ast.Expr, prec1, depth int) bool {
		nodes.go#L1047: func (p *printer) selectorExpr(x *ast.SelectorExpr, depth int, isMethod bool) bool {
		nodes.go#L1061: func (p *printer) expr0(x ast.Expr, depth int) {
		nodes.go#L1065: func (p *printer) expr(x ast.Expr) {
		nodes.go#L1076: func (p *printer) stmtList(list []ast.Stmt, nindent int, nextIsRBrace bool) {
		nodes.go#L1114: func (p *printer) block(b *ast.BlockStmt, nindent int) {
		nodes.go#L1164: func (p *printer) controlClause(isForStmt bool, init ast.Stmt, expr ast.Expr, post ast.Stmt) {
		nodes.go#L1202: func (p *printer) indentList(list []ast.Expr) bool {
		nodes.go#L1233: func (p *printer) stmt(stmt ast.Stmt, nextIsRBrace bool) {
		nodes.go#L1486: func (p *printer) valueSpec(s *ast.ValueSpec, keepType bool) {
		nodes.go#L1557: func (p *printer) spec(spec ast.Spec, n int, doIndent bool) {
		nodes.go#L1604: func (p *printer) genDecl(d *ast.GenDecl) {
		nodes.go#L1650: func (p *printer) nodeSize(n ast.Node, maxSize int) (size int) {
		nodes.go#L1683: func (p *printer) numLines(n ast.Node) int {
		nodes.go#L1693: func (p *printer) bodySize(b *ast.BlockStmt, maxSize int) int {
		nodes.go#L1724: func (p *printer) funcBody(headerSize int, sep whiteSpace, b *ast.BlockStmt) {
		nodes.go#L1761: func (p *printer) distanceFrom(startPos token.Pos, startOutCol int) int {
		nodes.go#L1768: func (p *printer) funcDecl(d *ast.FuncDecl) {
		nodes.go#L1784: func (p *printer) decl(decl ast.Decl) {
		nodes.go#L1811: func (p *printer) declList(list []ast.Decl) {
		nodes.go#L1838: func (p *printer) file(src *ast.File) {
		printer.go#L52: type printer struct {
		printer.go#L94: func (p *printer) init(cfg *Config, fset *token.FileSet, nodeSizes map[ast.Node]int) {
		printer.go#L104: func (p *printer) internalError(msg ...interface{}) {
		printer.go#L115: func (p *printer) commentsHaveNewline(list []*ast.Comment) bool {
		printer.go#L131: func (p *printer) nextComment() {
		printer.go#L152: func (p *printer) commentBefore(next token.Position) bool {
		printer.go#L159: func (p *printer) commentSizeBefore(next token.Position) int {
		printer.go#L180: func (p *printer) recordLine(linePtr *int) {
		printer.go#L189: func (p *printer) linesFrom(line int) int {
		printer.go#L193: func (p *printer) posFor(pos token.Pos) token.Position {
		printer.go#L198: func (p *printer) lineFor(pos token.Pos) int {
		printer.go#L207: func (p *printer) writeLineDirective(pos token.Position) {
		printer.go#L219: func (p *printer) writeIndent() {
		printer.go#L235: func (p *printer) writeByte(ch byte, n int) {
		printer.go#L283: func (p *printer) writeString(pos token.Position, s string, isLit bool) {
		printer.go#L353: func (p *printer) writeCommentPrefix(pos, next token.Position, prev *ast.Comment, tok token.Token) {
		printer.go#L638: func (p *printer) writeComment(comment *ast.Comment) {
		printer.go#L694: func (p *printer) writeCommentSuffix(needsLinebreak bool) (wroteNewline, droppedFF bool) {
		printer.go#L728: func (p *printer) containsLinebreak() bool {
		printer.go#L743: func (p *printer) intersperseComments(next token.Position, tok token.Token) (wroteNewline, droppedFF bool) {
		printer.go#L794: func (p *printer) writeWhitespace(n int) {
		printer.go#L876: func (p *printer) print(args ...interface{}) {
		printer.go#L1019: func (p *printer) flush(next token.Position, tok token.Token) (wroteNewline, droppedFF bool) {
		printer.go#L1073: func (p *printer) printNode(node interface{}) error {
		printer.go#L1307: 	var p printer