go/token.Token.String (method)
11 uses
go/token (current package)
token.go#L236: func (tok Token) String() string {
go/ast
ast.go#L804: return token.Pos(int(s.TokPos) + len(s.Tok.String()))
go/parser
parser.go#L246: s := p.tok.String()
parser.go#L385: msg += ", found '" + p.tok.String() + "'"
parser.go#L394: p.errorExpected(pos, "'"+tok.String()+"'")
parser.go#L406: p.errorExpected(p.pos, "'"+tok.String()+"'")
parser.go#L2332: defer un(trace(p, keyword.String()+"Spec"))
parser.go#L2403: defer un(trace(p, "GenDecl("+keyword.String()+")"))
go/printer
nodes.go#L615: switch e.Op.String() + r.Op.String() {
printer.go#L939: s := x.String()
![]() |
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. |