MCPcopy
hub / github.com/braziljs/eloquente-javascript / space

Method space

src/pseudo_json.mjs:11–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9 }
10
11 space() {
12 for (;;) {
13 let next = this.next
14 if (next == 32 || next == 9 || next == 10 || next == 13) this.pos++
15 else break
16 }
17 }
18
19 get next() {
20 return this.str.charCodeAt(this.pos)

Callers 4

aheadMethod · 0.95
parseFunction · 0.95
parseStrFunction · 0.80
parseWordFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected