MCPcopy Create free account
hub / github.com/Paxa/postbird / afterType

Function afterType

public/codemirror/javascript/javascript.js:564–568  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

562 else if (type == ":") return cont(typeexpr)
563 }
564 function afterType(type, value) {
565 if (value == "<") return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, afterType)
566 if (value == "|" || type == ".") return cont(typeexpr)
567 if (type == "[") return cont(expect("]"), afterType)
568 }
569 function vardef() {
570 return pass(pattern, maybetype, maybeAssign, vardefCont);
571 }

Callers

nothing calls this directly

Calls 4

contFunction · 0.85
pushlexFunction · 0.85
commasepFunction · 0.85
expectFunction · 0.85

Tested by

no test coverage detected