(id, line, pos int)
| 39 | } |
| 40 | |
| 41 | func (t *token) init(id, line, pos int) { |
| 42 | t.ID = id |
| 43 | t.Value = t.Value[:0] |
| 44 | |
| 45 | t.line = line |
| 46 | t.pos = pos |
| 47 | } |
| 48 | |
| 49 | func (t *token) String() string { |
| 50 | return fmt.Sprintf("Token %q, value %q", tokenIDToStr(t.ID), t.Value) |
no outgoing calls
no test coverage detected