You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
239 B
Go
13 lines
239 B
Go
5 years ago
|
package parser
|
||
6 years ago
|
|
||
|
// Pos represents a position in the file set.
|
||
|
type Pos int
|
||
|
|
||
|
// NoPos represents an invalid position.
|
||
|
const NoPos Pos = 0
|
||
|
|
||
|
// IsValid returns true if the position is valid.
|
||
|
func (p Pos) IsValid() bool {
|
||
|
return p != NoPos
|
||
|
}
|