php-parser/token/token.go
2017-12-03 20:49:18 +02:00

16 lines
261 B
Go

package token
type Token struct {
Value string
StartLine int
EndLine int
}
func NewToken(value []byte, startLine int, endLine int) Token {
return Token{string(value), startLine, endLine}
}
func (t Token) String() string {
return string(t.Value)
}