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

Function typeexpr

public/codemirror/javascript/javascript.js:541–546  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

539 }
540 }
541 function typeexpr(type) {
542 if (type == "variable") {cx.marked = "variable-3"; return cont(afterType);}
543 if (type == "string" || type == "number" || type == "atom") return cont(afterType);
544 if (type == "{") return cont(pushlex("}"), commasep(typeprop, "}", ",;"), poplex)
545 if (type == "(") return cont(commasep(typearg, ")"), maybeReturnType)
546 }
547 function maybeReturnType(type) {
548 if (type == "=>") return cont(typeexpr)
549 }

Callers

nothing calls this directly

Calls 3

contFunction · 0.85
pushlexFunction · 0.85
commasepFunction · 0.85

Tested by

no test coverage detected