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

Method sliceFrom

compiler/parser/parser.go:25072–25074  ·  view source on GitHub ↗

get the slice of bytes from the savepoint start to the current position.

(start savepoint)

Source from the content-addressed store, hash-verified

25070
25071// get the slice of bytes from the savepoint start to the current position.
25072func (p *parser) sliceFrom(start savepoint) []byte {
25073 return p.data[start.position.offset:p.pt.position.offset]
25074}
25075
25076func (p *parser) getMemoized(node any) (resultTuple, bool) {
25077 if len(p.memo) == 0 {

Callers 6

parseRuleWrapMethod · 0.95
parseActionExprMethod · 0.95
parseAnyMatcherMethod · 0.95
parseCharClassMatcherMethod · 0.95
parseLitMatcherMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected