File: location.go

package info (click to toggle)
golang-github-antonmedv-expr 1.8.9-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 4,524 kB
  • sloc: makefile: 6
file content (10 lines) | stat: -rwxr-xr-x 219 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
package file

type Location struct {
	Line   int // The 1-based line of the location.
	Column int // The 0-based column number of the location.
}

func (l Location) Empty() bool {
	return l.Column == 0 && l.Line == 0
}