ledisdb/vendor/github.com/yuin/gopher-lua/ast/ast.go

30 lines
395 B
Go
Raw Normal View History

2017-04-15 16:51:03 +03:00
package ast
type PositionHolder interface {
Line() int
SetLine(int)
LastLine() int
SetLastLine(int)
}
type Node struct {
line int
lastline int
}
func (self *Node) Line() int {
return self.line
}
func (self *Node) SetLine(line int) {
self.line = line
}
func (self *Node) LastLine() int {
return self.lastline
}
func (self *Node) SetLastLine(line int) {
self.lastline = line
}