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

Function parse_keyword_or_ident

MathBox/mathbox-bundle.js:79985–79999  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79983 }
79984
79985 function parse_keyword_or_ident() {
79986 if(token.type === 'keyword') {
79987 state[0].type = 'keyword'
79988 state[0].mode = KEYWORD
79989 return
79990 }
79991
79992 if(token.type === 'ident') {
79993 state[0].type = 'ident'
79994 state[0].mode = IDENT
79995 return
79996 }
79997
79998 return unexpected('expected keyword or user-defined name, got '+token.data)
79999 }
80000
80001 function parse_keyword() {
80002 if(token.type !== 'keyword') {

Callers 1

writeFunction · 0.70

Calls 1

unexpectedFunction · 0.70

Tested by

no test coverage detected