go/token.Position.Line (field)
71 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#L322: return f.Position(p).Line
position.go#L378: 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#L86: fmt.Printf("%5d:%3d: ", pos.Line, pos.Column)
parser.go#L272: if n > 0 && p.errors[n-1].Pos.Line == epos.Line {
go/printer
nodes.go#L47: n := max(nlimit(line-p.pos.Line), min)
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#L192: prevLine := prev.Line
nodes.go#L294: if mode&commaTerm != 0 && next.IsValid() && p.pos.Line < next.Line {
nodes.go#L787: xline := p.pos.Line // before the operator (it may be on the 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#L181: return p.out.Line - line
printer.go#L192: p.cachedLine = p.fset.PositionFor(pos, false /* absolute position */).Line
printer.go#L199: if pos.IsValid() && (p.out.Line != pos.Line || p.out.Filename != pos.Filename) {
printer.go#L208: p.output = append(p.output, fmt.Sprintf("//line %s:%d\n", pos.Filename, pos.Line)...)
printer.go#L212: p.out.Line = pos.Line
printer.go#L260: p.pos.Line += n
printer.go#L261: p.out.Line += n
printer.go#L326: p.pos.Line += nlines
printer.go#L327: p.out.Line += nlines
printer.go#L361: if pos.Line == p.last.Line && (prev == nil || prev.Text[1] != '/') {
printer.go#L391: if pos.Line == next.Line {
printer.go#L443: n = pos.Line - p.last.Line
printer.go#L790: last.Text[1] == '*' && p.lineFor(last.Pos()) == next.Line &&
printer.go#L1007: n := nlimit(next.Line - p.pos.Line)
printer.go#L1024: *p.linePtr = p.out.Line
printer.go#L1340: pos: token.Position{Line: 1, Column: 1},
printer.go#L1341: out: token.Position{Line: 1, Column: 1},
printer.go#L1369: p.flush(token.Position{Offset: infinity, Line: infinity}, token.EOF)
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
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)
gotest.tools/v3/internal/source
defers.go#L15: case fileset.Position(node.End()).Line == lineNum:
source.go#L70: case fileset.Position(node.Pos()).Line == lineNum: