go/printer.printer.pos (field)
26 uses
go/printer (current package)
nodes.go#L49: n := nlimit(line - p.pos.Line)
nodes.go#L296: if mode&commaTerm != 0 && next.IsValid() && p.pos.Line < next.Line {
nodes.go#L715: xline := p.pos.Line // before the operator (it may be on the next line!)
nodes.go#L1050: if line := p.lineFor(x.Sel.Pos()); p.pos.IsValid() && p.pos.Line < line {
nodes.go#L1762: if startPos.IsValid() && p.pos.IsValid() && p.posFor(startPos).Line == p.pos.Line {
printer.go#L74: pos token.Position // current position in AST (source) space
printer.go#L97: p.pos = token.Position{Line: 1, Column: 1}
printer.go#L106: fmt.Print(p.pos.String() + ": ")
printer.go#L228: p.pos.Offset += n
printer.go#L229: p.pos.Column += n
printer.go#L260: p.pos.Offset += n
printer.go#L262: p.pos.Line += n
printer.go#L264: p.pos.Column = 1
printer.go#L268: p.pos.Column += n
printer.go#L296: p.pos = pos
printer.go#L327: p.pos.Offset += len(s)
printer.go#L329: p.pos.Line += nlines
printer.go#L332: p.pos.Column = c
printer.go#L335: p.pos.Column += len(s)
printer.go#L343: p.last = p.pos
printer.go#L679: pos = p.pos
printer.go#L964: p.pos = p.posFor(x) // accurate position of next item
printer.go#L981: next := p.pos // estimated/accurate position of next item
printer.go#L988: n := nlimit(next.Line - p.pos.Line)
![]() |
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. |