MCPcopy Index your code
hub / github.com/google/codesearch / stepEmpty

Method stepEmpty

regexp/match.go:148–153  ·  view source on GitHub ↗

stepEmpty steps runq to nextq expanding according to flag.

(runq, nextq *sparse.Set, flag syntax.EmptyOp)

Source from the content-addressed store, hash-verified

146
147// stepEmpty steps runq to nextq expanding according to flag.
148func (m *matcher) stepEmpty(runq, nextq *sparse.Set, flag syntax.EmptyOp) {
149 nextq.Reset()
150 for _, id := range runq.Dense() {
151 m.addq(nextq, id, flag)
152 }
153}
154
155// stepByte steps runq to nextq consuming c and then expanding according to flag.
156// It returns true if a match ends immediately before c.

Callers 1

computeNextMethod · 0.95

Calls 3

addqMethod · 0.95
ResetMethod · 0.80
DenseMethod · 0.80

Tested by

no test coverage detected