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

Function maybe_name

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

Source from the content-addressed store, hash-verified

33216 }
33217
33218 function maybe_name() {
33219 if(token.data === ',' && !(stmt.flags & DECL_ALLOW_COMMA)) {
33220 return state.shift()
33221 }
33222
33223 if(token.data === '[') {
33224 // oh lord.
33225 state.unshift(quantifier())
33226 return
33227 }
33228
33229 if(token.data === ')') return state.shift()
33230
33231 if(token.data === ';') {
33232 return stmt.stage + 3
33233 }
33234
33235 if(token.type !== 'ident') {
33236 console.log(token);
33237 return unexpected('expected identifier, got '+token.data)
33238 }
33239
33240 stmt.collected_name = tokens.shift()
33241 return Advance
33242 }
33243
33244 function maybe_lparen() {
33245 if(token.data === '(') {

Callers

nothing calls this directly

Calls 1

unexpectedFunction · 0.70

Tested by

no test coverage detected