MCPcopy Create free account
hub / github.com/dop251/goja / passString

Method passString

parser/regexp.go:474–483  ·  view source on GitHub ↗
(start, end int)

Source from the content-addressed store, hash-verified

472}
473
474func (self *_RegExp_parser) passString(start, end int) {
475 if self.passOffset == start {
476 self.passOffset = end
477 return
478 }
479 if self.passOffset != -1 {
480 self.stopPassing()
481 }
482 self.goRegexp.WriteString(self.str[start:end])
483}
484
485func (self *_RegExp_parser) error(fatal bool, msg string, msgValues ...interface{}) {
486 if self.err != nil {

Callers 1

scanEscapeMethod · 0.95

Calls 2

stopPassingMethod · 0.95
WriteStringMethod · 0.80

Tested by

no test coverage detected