MCPcopy
hub / github.com/stemkoski/stemkoski.github.com / invariant_or_not

Function invariant_or_not

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

Source from the content-addressed store, hash-verified

33140 )()
33141
33142 function invariant_or_not() {
33143 if(token.data === 'invariant') {
33144 if(stmt.flags & DECL_ALLOW_INVARIANT) {
33145 state.unshift(keyword())
33146 return Advance
33147 } else {
33148 return unexpected('`invariant` is not allowed here')
33149 }
33150 } else {
33151 state.fake(mknode(PLACEHOLDER, {data: '', position: token.position}))
33152 return Advance
33153 }
33154 }
33155
33156 function storage_or_not() {
33157 if(is_storage(token)) {

Callers

nothing calls this directly

Calls 3

keywordFunction · 0.70
unexpectedFunction · 0.70
mknodeFunction · 0.70

Tested by

no test coverage detected