go/token.Position.IsValid (method)
18 uses
go/token (current package)
position.go#L34: func (pos *Position) IsValid() bool { return pos.Line > 0 }
position.go#L46: if pos.IsValid() {
go/printer
nodes.go#L131: if prev.IsValid() && prev.Line == next.Line {
nodes.go#L146: if prev.IsValid() && prev.Line == line && line == endLine {
nodes.go#L176: if prev.IsValid() && prev.Line < line && p.linebreak(line, 0, ws, true) > 0 {
nodes.go#L211: if size <= infinity && prev.IsValid() && next.IsValid() {
nodes.go#L294: if mode&commaTerm != 0 && next.IsValid() && p.pos.Line < next.Line {
nodes.go#L1160: if line := p.lineFor(x.Sel.Pos()); p.pos.IsValid() && p.pos.Line < line {
nodes.go#L1914: if startPos.IsValid() && p.pos.IsValid() && p.posFor(startPos).Line == p.pos.Line {
printer.go#L199: if pos.IsValid() && (p.out.Line != pos.Line || p.out.Filename != pos.Filename) {
printer.go#L288: if pos.IsValid() {
printer.go#L355: if pos.IsValid() && pos.Filename != p.last.Filename {
printer.go#L442: if pos.IsValid() && p.last.IsValid() {
printer.go#L634: if strings.HasPrefix(text, linePrefix) && (!pos.IsValid() || pos.Column == 1) {
printer.go#L662: if pos.IsValid() && pos.Column == 1 && p.indent > 0 {
go/scanner
errors.go#L25: if e.Pos.Filename != "" || e.Pos.IsValid() {
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)