go/token.Position.IsValid (method, view implemented interface methods)
18 uses
go/token (current package)
position.go#L28: func (pos *Position) IsValid() bool { return pos.Line > 0 }
position.go#L41: if pos.IsValid() {
go/printer
nodes.go#L135: if prev.IsValid() && prev.Line == next.Line {
nodes.go#L150: if prev.IsValid() && prev.Line == line && line == endLine {
nodes.go#L179: if prev.IsValid() && prev.Line < line && p.linebreak(line, 0, ws, true) > 0 {
nodes.go#L214: if size <= infinity && prev.IsValid() && next.IsValid() {
nodes.go#L296: if mode&commaTerm != 0 && next.IsValid() && p.pos.Line < next.Line {
nodes.go#L1111: if line := p.lineFor(x.Sel.Pos()); p.pos.IsValid() && p.pos.Line < line {
nodes.go#L1826: if startPos.IsValid() && p.pos.IsValid() && p.posFor(startPos).Line == p.pos.Line {
printer.go#L211: if pos.IsValid() && (p.out.Line != pos.Line || p.out.Filename != pos.Filename) {
printer.go#L294: if pos.IsValid() {
printer.go#L362: if pos.IsValid() && pos.Filename != p.last.Filename {
printer.go#L449: if pos.IsValid() && p.last.IsValid() {
printer.go#L643: if strings.HasPrefix(text, linePrefix) && (!pos.IsValid() || pos.Column == 1) {
printer.go#L671: if pos.IsValid() && pos.Column == 1 && p.indent > 0 {
go/scanner
errors.go#L26: if e.Pos.Filename != "" || e.Pos.IsValid() {
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)