(kind Kind, values ...string)
| 32 | } |
| 33 | |
| 34 | func (t Token) Is(kind Kind, values ...string) bool { |
| 35 | if kind != t.Kind { |
| 36 | return false |
| 37 | } |
| 38 | for _, v := range values { |
| 39 | if v == t.Value { |
| 40 | return true |
| 41 | } |
| 42 | } |
| 43 | return len(values) == 0 |
| 44 | } |
no outgoing calls
no test coverage detected