MCPcopy Create free account
hub / github.com/brimdata/super / restore

Method restore

compiler/parser/parser.go:25012–25020  ·  view source on GitHub ↗

restore parser position to the savepoint pt.

(pt savepoint)

Source from the content-addressed store, hash-verified

25010
25011// restore parser position to the savepoint pt.
25012func (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

Callers 7

parseRuleMemoizeMethod · 0.95
parseExprWrapMethod · 0.95
parseAndExprMethod · 0.95
parseLitMatcherMethod · 0.95
parseNotExprMethod · 0.95
parseSeqExprMethod · 0.95

Calls 2

outMethod · 0.95
inMethod · 0.95

Tested by

no test coverage detected