5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-09-20 05:32:32 +00:00
matterbridge/vendor/github.com/d5/tengo/v2/parser/pos.go
2020-01-09 21:52:19 +01:00

13 lines
239 B
Go

package parser
// 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
}