MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / eatWhile

Method eatWhile

lib/web/CodeMirror/src/util/StringStream.js:32–36  ·  view source on GitHub ↗
(match)

Source from the content-addressed store, hash-verified

30 if (ok) {++this.pos; return ch}
31 }
32 eatWhile(match) {
33 let start = this.pos
34 while (this.eat(match)){}
35 return this.pos > start
36 }
37 eatSpace() {
38 let start = this.pos
39 while (/[\s\u00a0]/.test(this.string.charAt(this.pos))) ++this.pos

Callers 15

VimFunction · 0.95
normalFunction · 0.80
dart.jsFile · 0.80
inlineNormalFunction · 0.80
tokenBaseFunction · 0.80
twTokenMacroFunction · 0.80
tokenChainFunction · 0.80
tokenPerlFunction · 0.80
gherkin.jsFile · 0.80
tokenStringFunction · 0.80
gfm.jsFile · 0.80

Calls 1

eatMethod · 0.95

Tested by

no test coverage detected