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

Function enumdef

static/editor.md/lib/codemirror/mode/rust/rust.js:289–295  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

287 return cont(tydef);
288 }
289 function enumdef(type) {
290 if (type == "name") {cx.marked = "def"; return cont(enumdef);}
291 if (content == "<") return cont(typarams, enumdef);
292 if (content == "=") return cont(typecx, rtype, valcx, endstatement);
293 if (type == "{") return cont(pushlex("}"), typecx, enumblock, valcx, poplex);
294 return cont(enumdef);
295 }
296 function enumblock(type) {
297 if (type == "}") return cont();
298 if (type == "(") return cont(pushlex(")"), commasep(rtype, ")"), poplex, enumblock);

Callers

nothing calls this directly

Calls 2

contFunction · 0.70
pushlexFunction · 0.70

Tested by

no test coverage detected