php-parser/token/token.go

16 lines
261 B
Go
Raw Normal View History

2017-12-03 18:49:18 +00:00
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)
}