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

Function getToken

static/editor.md/lib/codemirror/mode/erlang/erlang.js:576–581  ·  view source on GitHub ↗
(state,tokens)

Source from the content-addressed store, hash-verified

574 }
575
576 function getToken(state,tokens) {
577 var objs = state.tokenStack;
578 var i = getTokenIndex(objs,"token",tokens);
579
580 return truthy(objs[i]) ? objs[i] : false;
581 }
582
583 function getTokenIndex(objs,propname,propvals) {
584

Callers 2

indenterFunction · 0.85
scriptHintFunction · 0.85

Calls 2

getTokenIndexFunction · 0.85
truthyFunction · 0.85

Tested by

no test coverage detected