go/ast.AssignStmt.TokPos (field)
11 uses
go/ast (current package)
ast.go#L647: TokPos token.Pos // position of Tok
go/parser
parser.go#L1695: as := &ast.AssignStmt{Lhs: x, TokPos: pos, Tok: tok, Rhs: y}
parser.go#L1989: p.error(t.TokPos, "expected ':=', found '='")
parser.go#L2090: as := &ast.AssignStmt{Lhs: lhs, TokPos: pos, Tok: tok, Rhs: []ast.Expr{rhs}}
parser.go#L2199: TokPos: as.TokPos,
go/printer
nodes.go#L1283: p.exprList(s.Pos(), s.Lhs, depth, 0, s.TokPos, false)
nodes.go#L1284: p.print(blank, s.TokPos, s.Tok, blank)
nodes.go#L1285: p.exprList(s.TokPos, s.Rhs, depth, 0, token.NoPos, false)
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L86: if x.TokPos != 0 {
encode_ast.gen.go#L88: e.EncodeInt(int64(x.TokPos))
encode_ast.gen.go#L121: x.TokPos = token.Pos(d.DecodeInt())
 |
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. |