Steps the parser.
(it *lex.ItemIterator, typ lex.ItemType)
| 3537 | |
| 3538 | // Steps the parser. |
| 3539 | func tryParseItemType(it *lex.ItemIterator, typ lex.ItemType) (lex.Item, bool) { |
| 3540 | item, ok := it.PeekOne() |
| 3541 | if !ok || item.Typ != typ { |
| 3542 | return item, false |
| 3543 | } |
| 3544 | it.Next() |
| 3545 | return item, true |
| 3546 | } |
| 3547 | |
| 3548 | func trySkipItemVal(it *lex.ItemIterator, val string) bool { |
| 3549 | item, ok := it.PeekOne() |
no test coverage detected