MCPcopy
hub / github.com/nwutils/nw-sample-apps / exprbrace

Function exprbrace

mini-code-edit/cm/mode/rust/rust.js:216–225  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

214 return pass(expression);
215 }
216 function exprbrace(type) {
217 if (type == "op") {
218 if (content == "|") return cont(blockvars, poplex, pushlex("}", "block"), block);
219 if (content == "||") return cont(poplex, pushlex("}", "block"), block);
220 }
221 if (content == "mutable" || (content.match(/^\w+$/) && cx.stream.peek() == ":"
222 && !cx.stream.match("::", false)))
223 return pass(record_of(expression));
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);}

Callers

nothing calls this directly

Calls 4

record_ofFunction · 0.85
contFunction · 0.70
pushlexFunction · 0.70
passFunction · 0.70

Tested by

no test coverage detected