MCPcopy Index your code
hub / github.com/stemkoski/stemkoski.github.com / parse_keyword_or_ident

Function parse_keyword_or_ident

MathBox/mathbox-core.js:33300–33314  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33298 }
33299
33300 function parse_keyword_or_ident() {
33301 if(token.type === 'keyword') {
33302 state[0].type = 'keyword'
33303 state[0].mode = KEYWORD
33304 return
33305 }
33306
33307 if(token.type === 'ident') {
33308 state[0].type = 'ident'
33309 state[0].mode = IDENT
33310 return
33311 }
33312
33313 return unexpected('expected keyword or user-defined name, got '+token.data)
33314 }
33315
33316 function parse_keyword() {
33317 if(token.type !== 'keyword') {

Callers 1

writeFunction · 0.70

Calls 1

unexpectedFunction · 0.70

Tested by

no test coverage detected