You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package p
//line c.go:10
const C = 0 // file line = 4
//line t.go:20
type T int // file line = 7
//line v.go:30
var V T // file line = 10
//line f.go:40
func F() {} // file line = 13
the (line, column) information from the syntax/scanner is mapped to the following src.Pos strings (the last number is the actual line number returned by src.Pos.Line()):
The line numbers reported in [] brackets are the line numbers of the line directive (+ delta). They are off-by-1 for the purpose of the Pos.String(). The fix is trivial but must be made at the right place.
The text was updated successfully, but these errors were encountered:
For the following source:
the (line, column) information from the
syntax/scanner
is mapped to the followingsrc.Pos
strings (the last number is the actual line number returned bysrc.Pos.Line()
):The line numbers reported in [] brackets are the line numbers of the line directive (+ delta). They are off-by-1 for the purpose of the
Pos.String()
. The fix is trivial but must be made at the right place.The text was updated successfully, but these errors were encountered: