MCPcopy
hub / github.com/pandao/editor.md / rtype

Function rtype

lib/codemirror/mode/rust/rust.js:331–339  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

329 return pass();
330 }
331 function rtype(type) {
332 if (type == "name") {cx.marked = "variable-3"; return cont(rtypemaybeparam); }
333 if (content == "mutable") {cx.marked = "keyword"; return cont(rtype);}
334 if (type == "atom") return cont(rtypemaybeparam);
335 if (type == "op" || type == "obj") return cont(rtype);
336 if (type == "fn") return cont(fntype);
337 if (type == "{") return cont(pushlex("{"), record_of(rtype), poplex);
338 return matchBrackets(type, rtype);
339 }
340 function rtypemaybeparam() {
341 if (content == "<") return cont(typarams);
342 return pass();

Callers

nothing calls this directly

Calls 4

record_ofFunction · 0.85
contFunction · 0.70
pushlexFunction · 0.70
matchBracketsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…