MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / record_of

Function record_of

static/js/codemirror/mode/rust/rust.js:226–235  ·  view source on GitHub ↗
(comb)

Source from the content-addressed store, hash-verified

224 return pass(block);
225 }
226 function record_of(comb) {
227 function ro(type) {
228 if (content == "mutable" || content == "with") {cx.marked = "keyword"; return cont(ro);}
229 if (content.match(/^\w*$/)) {cx.marked = "variable"; return cont(ro);}
230 if (type == ":") return cont(comb, ro);
231 if (type == "}") return cont();
232 return cont(ro);
233 }
234 return ro;
235 }
236 function blockvars(type) {
237 if (type == "name") {cx.marked = "def"; return cont(blockvars);}
238 if (type == "op" && content == "|") return cont();

Callers 2

exprbraceFunction · 0.85
rtypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected