godog/gherkin/lexer/token.go
2015-06-06 20:07:54 +03:00

16 строки
235 Б
Go

package lexer
type Token struct {
Type TokenType
Line, Indent int
Value string
}
func (t *Token) OfType(all ...TokenType) bool {
for _, typ := range all {
if typ == t.Type {
return true
}
}
return false
}