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

Function letdef1

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

Source from the content-addressed store, hash-verified

253 }
254
255 function letdef1(type) {
256 if (type.match(/[\]\)\};]/)) return cont();
257 if (content == "=") return cont(expression, letdef2);
258 if (type == ",") return cont(letdef1);
259 return pass(pattern, maybetype, letdef1);
260 }
261 function letdef2(type) {
262 if (type.match(/[\]\)\};,]/)) return pass(letdef1);
263 else return pass(expression, letdef2);

Callers

nothing calls this directly

Calls 2

contFunction · 0.70
passFunction · 0.70

Tested by

no test coverage detected