MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / typename

Function typename

lib/web/CodeMirror/mode/javascript/javascript.js:728–735  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

726 if (isTS && value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, functiondecl)
727 }
728 function typename(type, value) {
729 if (type == "keyword" || type == "variable") {
730 cx.marked = "type"
731 return cont(typename)
732 } else if (value == "<") {
733 return cont(pushlex(">"), commasep(typeparam, ">"), poplex)
734 }
735 }
736 function funarg(type, value) {
737 if (value == "@") cont(expression, funarg)
738 if (type == "spread") return cont(funarg);

Callers

nothing calls this directly

Calls 3

contFunction · 0.70
pushlexFunction · 0.70
commasepFunction · 0.70

Tested by

no test coverage detected