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

Function getObj

static/mergely/lib/codemirror.js:6772–6777  ·  view source on GitHub ↗
(copy)

Source from the content-addressed store, hash-verified

6770 // Utility for getTokenAt and getLineTokens
6771 function takeToken(cm, pos, precise, asArray) {
6772 function getObj(copy) {
6773 return {start: stream.start, end: stream.pos,
6774 string: stream.current(),
6775 type: style || null,
6776 state: copy ? copyState(doc.mode, state) : state};
6777 }
6778
6779 var doc = cm.doc, mode = doc.mode, style;
6780 pos = clipPos(doc, pos);

Callers 1

takeTokenFunction · 0.70

Calls 1

copyStateFunction · 0.85

Tested by

no test coverage detected