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

Function typeprop

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

Source from the content-addressed store, hash-verified

632 return pass(typeprop, typeprops)
633 }
634 function typeprop(type, value) {
635 if (type == "variable" || cx.style == "keyword") {
636 cx.marked = "property"
637 return cont(typeprop)
638 } else if (value == "?" || type == "number" || type == "string") {
639 return cont(typeprop)
640 } else if (type == ":") {
641 return cont(typeexpr)
642 } else if (type == "[") {
643 return cont(expect("variable"), maybetypeOrIn, expect("]"), typeprop)
644 } else if (type == "(") {
645 return pass(functiondecl, typeprop)
646 } else if (!type.match(/[;\}\)\],]/)) {
647 return cont()
648 }
649 }
650 function typearg(type, value) {
651 if (type == "variable" && cx.stream.match(/^\s*[?:]/, false) || value == "?") return cont(typearg)
652 if (type == ":") return cont(typeexpr)

Callers

nothing calls this directly

Calls 3

contFunction · 0.85
expectFunction · 0.85
passFunction · 0.85

Tested by

no test coverage detected