go/printer.printer.print (method)
176 uses
go/printer (current package)
nodes.go#L54: p.print(ws)
nodes.go#L56: p.print(formfeed)
nodes.go#L62: p.print(newline)
nodes.go#L136: p.print("/* " + filteredMsg + " */")
nodes.go#L138: p.print(newline)
nodes.go#L139: p.print(indent, "// "+filteredMsg, unindent, newline)
nodes.go#L156: p.print(x.Pos(), token.COMMA, blank)
nodes.go#L161: p.print(token.COMMA, blank, "/* "+filteredMsg+" */")
nodes.go#L247: p.print(x.Pos())
nodes.go#L249: p.print(token.COMMA)
nodes.go#L271: p.print(blank)
nodes.go#L282: p.print(pair.Colon, token.COLON, vtab)
nodes.go#L298: p.print(token.COMMA)
nodes.go#L300: p.print(newline)
nodes.go#L301: p.print("// " + filteredMsg)
nodes.go#L305: p.print(unindent)
nodes.go#L307: p.print(formfeed) // terminating comma needs a line break to look good
nodes.go#L312: p.print(token.COMMA, newline)
nodes.go#L313: p.print("// "+filteredMsg, newline)
nodes.go#L318: p.print(unindent)
nodes.go#L323: p.print(fields.Opening, token.LPAREN)
nodes.go#L345: p.print(par.Pos())
nodes.go#L347: p.print(token.COMMA)
nodes.go#L354: p.print(blank)
nodes.go#L365: p.print(blank)
nodes.go#L374: p.print(token.COMMA)
nodes.go#L379: p.print(unindent)
nodes.go#L382: p.print(fields.Closing, token.RPAREN)
nodes.go#L389: p.print(token.LPAREN, token.RPAREN)
nodes.go#L394: p.print(blank)
nodes.go#L450: p.print(lbrace, token.LBRACE, rbrace, token.RBRACE)
nodes.go#L455: p.print(lbrace, token.LBRACE, blank)
nodes.go#L461: p.print(token.COMMA, blank)
nodes.go#L466: p.print(blank)
nodes.go#L479: p.print(blank, rbrace, token.RBRACE)
nodes.go#L485: p.print(blank, lbrace, token.LBRACE, indent)
nodes.go#L487: p.print(formfeed)
nodes.go#L507: p.print(sep)
nodes.go#L517: p.print(sep)
nodes.go#L519: p.print(sep)
nodes.go#L525: p.print(sep)
nodes.go#L532: p.print(formfeed)
nodes.go#L559: p.print(formfeed)
nodes.go#L566: p.print(unindent, formfeed, rbrace, token.RBRACE)
nodes.go#L702: p.print(token.LPAREN)
nodes.go#L704: p.print(token.RPAREN)
nodes.go#L713: p.print(blank)
nodes.go#L717: p.print(x.OpPos, x.Op)
nodes.go#L727: p.print(blank)
nodes.go#L731: p.print(unindent)
nodes.go#L741: p.print(expr.Pos())
nodes.go#L745: p.print("BadExpr")
nodes.go#L748: p.print(x)
nodes.go#L759: p.print(x.Colon, token.COLON, blank)
nodes.go#L766: p.print(token.LPAREN)
nodes.go#L767: p.print(token.MUL)
nodes.go#L769: p.print(token.RPAREN)
nodes.go#L772: p.print(token.MUL)
nodes.go#L780: p.print(token.LPAREN)
nodes.go#L782: p.print(token.RPAREN)
nodes.go#L785: p.print(x.Op)
nodes.go#L788: p.print(blank)
nodes.go#L797: p.print(x)
nodes.go#L800: p.print(x.Type.Pos(), token.FUNC)
nodes.go#L812: p.print(token.LPAREN)
nodes.go#L814: p.print(x.Rparen, token.RPAREN)
nodes.go#L822: p.print(token.PERIOD, x.Lparen, token.LPAREN)
nodes.go#L826: p.print(token.TYPE)
nodes.go#L828: p.print(x.Rparen, token.RPAREN)
nodes.go#L833: p.print(x.Lbrack, token.LBRACK)
nodes.go#L835: p.print(x.Rbrack, token.RBRACK)
nodes.go#L840: p.print(x.Lbrack, token.LBRACK)
nodes.go#L865: p.print(blank)
nodes.go#L867: p.print(token.COLON)
nodes.go#L869: p.print(blank)
nodes.go#L876: p.print(x.Rbrack, token.RBRACK)
nodes.go#L885: p.print(token.LPAREN)
nodes.go#L887: p.print(token.RPAREN)
nodes.go#L891: p.print(x.Lparen, token.LPAREN)
nodes.go#L894: p.print(x.Ellipsis, token.ELLIPSIS)
nodes.go#L896: p.print(token.COMMA, formfeed)
nodes.go#L901: p.print(x.Rparen, token.RPAREN)
nodes.go#L903: p.print(unindent)
nodes.go#L912: p.print(x.Lbrace, token.LBRACE)
nodes.go#L925: p.print(indent, unindent, mode, x.Rbrace, token.RBRACE, mode)
nodes.go#L929: p.print(token.ELLIPSIS)
nodes.go#L935: p.print(token.LBRACK)
nodes.go#L939: p.print(token.RBRACK)
nodes.go#L943: p.print(token.STRUCT)
nodes.go#L947: p.print(token.FUNC)
nodes.go#L951: p.print(token.INTERFACE)
nodes.go#L955: p.print(token.MAP, token.LBRACK)
nodes.go#L957: p.print(token.RBRACK)
nodes.go#L963: p.print(token.CHAN)
nodes.go#L965: p.print(token.ARROW, token.CHAN) // x.Arrow and x.Pos() are the same
nodes.go#L967: p.print(token.CHAN, x.Arrow, token.ARROW)
nodes.go#L969: p.print(blank)
nodes.go#L1049: p.print(token.PERIOD)
nodes.go#L1051: p.print(indent, newline, x.Sel.Pos(), x.Sel)
nodes.go#L1053: p.print(unindent)
nodes.go#L1057: p.print(x.Sel.Pos(), x.Sel)
nodes.go#L1078: p.print(indent)
nodes.go#L1109: p.print(unindent)
nodes.go#L1115: p.print(b.Lbrace, token.LBRACE)
nodes.go#L1118: p.print(b.Rbrace, token.RBRACE)
nodes.go#L1165: p.print(blank)
nodes.go#L1179: p.print(token.SEMICOLON, blank)
nodes.go#L1185: p.print(token.SEMICOLON, blank)
nodes.go#L1194: p.print(blank)
nodes.go#L1234: p.print(stmt.Pos())
nodes.go#L1238: p.print("BadStmt")
nodes.go#L1250: p.print(unindent)
nodes.go#L1252: p.print(s.Colon, token.COLON, indent)
nodes.go#L1255: p.print(newline, e.Pos(), token.SEMICOLON)
nodes.go#L1270: p.print(blank, s.Arrow, token.ARROW, blank)
nodes.go#L1276: p.print(s.TokPos, s.Tok)
nodes.go#L1284: p.print(blank, s.TokPos, s.Tok, blank)
nodes.go#L1288: p.print(token.GO, blank)
nodes.go#L1292: p.print(token.DEFER, blank)
nodes.go#L1296: p.print(token.RETURN)
nodes.go#L1298: p.print(blank)
nodes.go#L1305: p.print(indent)
nodes.go#L1309: p.print(unindent)
nodes.go#L1316: p.print(s.Tok)
nodes.go#L1318: p.print(blank)
nodes.go#L1326: p.print(token.IF)
nodes.go#L1330: p.print(blank, token.ELSE, blank)
nodes.go#L1338: p.print(token.LBRACE, indent, formfeed)
nodes.go#L1340: p.print(unindent, formfeed, token.RBRACE)
nodes.go#L1346: p.print(token.CASE, blank)
nodes.go#L1349: p.print(token.DEFAULT)
nodes.go#L1351: p.print(s.Colon, token.COLON)
nodes.go#L1355: p.print(token.SWITCH)
nodes.go#L1360: p.print(token.SWITCH)
nodes.go#L1362: p.print(blank)
nodes.go#L1364: p.print(token.SEMICOLON)
nodes.go#L1366: p.print(blank)
nodes.go#L1368: p.print(blank)
nodes.go#L1373: p.print(token.CASE, blank)
nodes.go#L1376: p.print(token.DEFAULT)
nodes.go#L1378: p.print(s.Colon, token.COLON)
nodes.go#L1382: p.print(token.SELECT, blank)
nodes.go#L1386: p.print(body.Lbrace, token.LBRACE, body.Rbrace, token.RBRACE)
nodes.go#L1392: p.print(token.FOR)
nodes.go#L1397: p.print(token.FOR, blank)
nodes.go#L1403: p.print(s.Value.Pos(), token.COMMA, blank)
nodes.go#L1406: p.print(blank, s.TokPos, s.Tok, blank)
nodes.go#L1408: p.print(token.RANGE, blank)
nodes.go#L1410: p.print(blank)
nodes.go#L1491: p.print(vtab)
nodes.go#L1498: p.print(vtab, token.ASSIGN, blank)
nodes.go#L1504: p.print(vtab)
nodes.go#L1563: p.print(blank)
nodes.go#L1567: p.print(s.EndPos)
nodes.go#L1576: p.print(blank)
nodes.go#L1580: p.print(blank, token.ASSIGN, blank)
nodes.go#L1589: p.print(blank)
nodes.go#L1591: p.print(vtab)
nodes.go#L1594: p.print(token.ASSIGN, blank)
nodes.go#L1606: p.print(d.Pos(), d.Tok, blank)
nodes.go#L1610: p.print(d.Lparen, token.LPAREN)
nodes.go#L1612: p.print(indent, formfeed)
nodes.go#L1635: p.print(unindent, formfeed)
nodes.go#L1637: p.print(d.Rparen, token.RPAREN)
nodes.go#L1737: p.print(sep, b.Lbrace, token.LBRACE)
nodes.go#L1739: p.print(blank)
nodes.go#L1742: p.print(token.SEMICOLON, blank)
nodes.go#L1746: p.print(blank)
nodes.go#L1748: p.print(noExtraLinebreak, b.Rbrace, token.RBRACE, noExtraLinebreak)
nodes.go#L1753: p.print(blank) // always use blank
nodes.go#L1770: p.print(d.Pos(), token.FUNC, blank)
nodes.go#L1777: p.print(blank)
nodes.go#L1787: p.print(d.Pos(), "BadDecl")
nodes.go#L1840: p.print(src.Pos(), token.PACKAGE, blank)
nodes.go#L1843: p.print(newline)
printer.go#L876: func (p *printer) print(args ...interface{}) {
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |