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

Method writeString

parser/regexp.go:133–138  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

131}
132
133func (self *_RegExp_parser) writeString(s string) {
134 if self.passOffset != -1 {
135 self.stopPassing()
136 }
137 self.goRegexp.WriteString(s)
138}
139
140func (self *_RegExp_parser) scan() {
141 for self.chr != -1 {

Callers 4

scanMethod · 0.95
scanGroupMethod · 0.95
scanBracketMethod · 0.95
scanEscapeMethod · 0.95

Calls 2

stopPassingMethod · 0.95
WriteStringMethod · 0.80

Tested by

no test coverage detected