go/token.Position.Line (field)
35 uses
go/token (current package)
position.go#L29: Line int // line number, starting at 1
position.go#L34: func (pos *Position) IsValid() bool { return pos.Line > 0 }
position.go#L50: s += strconv.Itoa(pos.Line)
position.go#L325: return f.Position(p).Line
position.go#L381: pos.Filename, pos.Line, pos.Column = f.unpack(offset, adjusted)
go/ast
commentmap.go#L163: qpos.Line = infinity
commentmap.go#L181: (pgend.Line == r.pos.Line ||
commentmap.go#L182: pgend.Line+1 == r.pos.Line && r.end.Line+1 < qpos.Line):
commentmap.go#L190: (pend.Line == r.pos.Line ||
commentmap.go#L191: pend.Line+1 == r.pos.Line && r.end.Line+1 < qpos.Line ||
import.go#L67: return fset.PositionFor(pos, false).Line
go/build
read.go#L49: Line: 1,
read.go#L117: r.pos.Line++
go/parser
parser.go#L95: fmt.Printf("%5d:%3d: ", pos.Line, pos.Column)
parser.go#L175: return p.file.PositionFor(pos, false).Line
parser.go#L286: if n > 0 && p.errors[n-1].Pos.Line == epos.Line {
go/scanner
errors.go#L58: if e.Line != f.Line {
errors.go#L59: return e.Line < f.Line
errors.go#L80: if e.Pos.Filename != last.Filename || e.Pos.Line != last.Line {
go/types
format.go#L95: w := ndigits(pos1.Line) + ndigits(pos1.Column)
labels.go#L158: check.fset.Position(varDeclPos).Line,
golang.org/x/tools/internal/gcimporter
iexport.go#L887: line := int64(p.Line)
iexport.go#L921: line := int64(p.Line)