restore parser position to the savepoint pt.
(pt savepoint)
| 25010 | |
| 25011 | // restore parser position to the savepoint pt. |
| 25012 | func (p *parser) restore(pt savepoint) { |
| 25013 | if p.debug { |
| 25014 | defer p.out(p.in("restore")) |
| 25015 | } |
| 25016 | if pt.offset == p.pt.offset { |
| 25017 | return |
| 25018 | } |
| 25019 | p.pt = pt |
| 25020 | } |
| 25021 | |
| 25022 | // Cloner is implemented by any value that has a Clone method, which returns a |
| 25023 | // copy of the value. This is mainly used for types which are not passed by |
no test coverage detected