MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / PreVisit

Method PreVisit

extern/re2/re2/parse.cc:533–545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531};
532
533int RepetitionWalker::PreVisit(Regexp* re, int parent_arg, bool* stop) {
534 int arg = parent_arg;
535 if (re->op() == kRegexpRepeat) {
536 int m = re->max();
537 if (m < 0) {
538 m = re->min();
539 }
540 if (m > 0) {
541 arg /= m;
542 }
543 }
544 return arg;
545}
546
547int RepetitionWalker::PostVisit(Regexp* re, int parent_arg, int pre_arg,
548 int* child_args, int nchild_args) {

Callers

nothing calls this directly

Calls 3

maxMethod · 0.80
minMethod · 0.80
opMethod · 0.45

Tested by

no test coverage detected