MCPcopy
hub / github.com/DHTMLX/gantt / afterType

Function afterType

samples/common/codehighlight/javascript.js:656–662  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

654 return pass(typeexpr)
655 }
656 function afterType(type, value) {
657 if (value == "<") return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, afterType)
658 if (value == "|" || type == "." || value == "&") return cont(typeexpr)
659 if (type == "[") return cont(typeexpr, expect("]"), afterType)
660 if (value == "extends" || value == "implements") { cx.marked = "keyword"; return cont(typeexpr) }
661 if (value == "?") return cont(typeexpr, expect(":"), typeexpr)
662 }
663 function maybeTypeArgs(_, value) {
664 if (value == "<") return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, afterType)
665 }

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