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

Function Iter

static/editor.md/lib/codemirror/addon/fold/xml-fold.js:21–26  ·  view source on GitHub ↗
(cm, line, ch, range)

Source from the content-addressed store, hash-verified

19 var xmlTagStart = new RegExp("<(/?)([" + nameStartChar + "][" + nameChar + "]*)", "g");
20
21 function Iter(cm, line, ch, range) {
22 this.line = line; this.ch = ch;
23 this.cm = cm; this.text = cm.getLine(line);
24 this.min = range ? range.from : cm.firstLine();
25 this.max = range ? range.to - 1 : cm.lastLine();
26 }
27
28 function tagAt(iter, ch) {
29 var type = iter.cm.getTokenTypeAt(Pos(iter.line, ch));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected