MCPcopy
hub / github.com/RubyLouvre/anu / white

Function white

test/babel.js:50223–50239  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50221 }
50222 },
50223 white = function white() {
50224
50225 // Skip whitespace and comments.
50226 // Note that we're detecting comments by only a single / character.
50227 // This works since regular expressions are not valid JSON(5), but this will
50228 // break if there are other valid values that begin with a / character!
50229
50230 while (ch) {
50231 if (ch === '/') {
50232 comment();
50233 } else if (ws.indexOf(ch) >= 0) {
50234 next();
50235 } else {
50236 return;
50237 }
50238 }
50239 },
50240 word = function word() {
50241
50242 // true, false, or null.

Callers 3

arrayFunction · 0.85
objectFunction · 0.85
babel.jsFile · 0.85

Calls 2

commentFunction · 0.85
nextFunction · 0.70

Tested by

no test coverage detected