php-parser/scanner/token.go
2018-06-25 23:30:10 +03:00

20 lines
293 B
Go

package scanner
import (
"github.com/z7zmey/php-parser/comment"
)
// Token value returned by lexer
type Token struct {
Value string
Comments []*comment.Comment
StartLine int
EndLine int
StartPos int
EndPos int
}
func (t *Token) String() string {
return string(t.Value)
}