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

Function word

test/babel.js:50240–50281  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50238 }
50239 },
50240 word = function word() {
50241
50242 // true, false, or null.
50243
50244 switch (ch) {
50245 case 't':
50246 next('t');
50247 next('r');
50248 next('u');
50249 next('e');
50250 return true;
50251 case 'f':
50252 next('f');
50253 next('a');
50254 next('l');
50255 next('s');
50256 next('e');
50257 return false;
50258 case 'n':
50259 next('n');
50260 next('u');
50261 next('l');
50262 next('l');
50263 return null;
50264 case 'I':
50265 next('I');
50266 next('n');
50267 next('f');
50268 next('i');
50269 next('n');
50270 next('i');
50271 next('t');
50272 next('y');
50273 return Infinity;
50274 case 'N':
50275 next('N');
50276 next('a');
50277 next('N');
50278 return NaN;
50279 }
50280 error("Unexpected " + renderChar(ch));
50281 },
50282 value,
50283 // Place holder for the value function.
50284

Callers 2

numberFunction · 0.85
babel.jsFile · 0.85

Calls 3

errorFunction · 0.85
renderCharFunction · 0.85
nextFunction · 0.70

Tested by

no test coverage detected