MCPcopy Create free account
hub / github.com/TruthHun/BookStack / pushToken

Function pushToken

static/editor.md/lib/codemirror/mode/erlang/erlang.js:417–423  ·  view source on GitHub ↗
(state,token)

Source from the content-addressed store, hash-verified

415 }
416
417 function pushToken(state,token) {
418
419 if (!(token.type == "comment" || token.type == "whitespace")) {
420 state.tokenStack = maybe_drop_pre(state.tokenStack,token);
421 state.tokenStack = maybe_drop_post(state.tokenStack);
422 }
423 }
424
425 function maybe_drop_pre(s,token) {
426 var last = s.length-1;

Callers 1

rvalFunction · 0.85

Calls 2

maybe_drop_preFunction · 0.85
maybe_drop_postFunction · 0.85

Tested by

no test coverage detected