MCPcopy
hub / github.com/stemkoski/stemkoski.github.com / end

Function end

MathBox/mathbox-core.js:32976–32987  ·  view source on GitHub ↗
(tokens)

Source from the content-addressed store, hash-verified

32974 }
32975
32976 function end(tokens) {
32977 if(arguments.length) {
32978 write(tokens)
32979 }
32980
32981 if(state.length > 1) {
32982 unexpected('unexpected EOF')
32983 return
32984 }
32985
32986 stream.emit('end')
32987 }
32988
32989 function take() {
32990 if(errored || !state.length)

Callers 1

mathbox-core.jsFile · 0.70

Calls 3

writeFunction · 0.70
unexpectedFunction · 0.70
tokenFunction · 0.70

Tested by

no test coverage detected