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

Function classBody

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

Source from the content-addressed store, hash-verified

762 if (type == "{") return cont(pushlex("}"), classBody, poplex);
763 }
764 function classBody(type, value) {
765 if (type == "async" ||
766 (type == "variable" &&
767 (value == "static" || value == "get" || value == "set" || (isTS && isModifier(value))) &&
768 cx.stream.match(/^\s+[\w$\xa1-\uffff]/, false))) {
769 cx.marked = "keyword";
770 return cont(classBody);
771 }
772 if (type == "variable" || cx.style == "keyword") {
773 cx.marked = "property";
774 return cont(classfield, classBody);
775 }
776 if (type == "number" || type == "string") return cont(classfield, classBody);
777 if (type == "[")
778 return cont(expression, maybetype, expect("]"), classfield, classBody)
779 if (value == "*") {
780 cx.marked = "keyword";
781 return cont(classBody);
782 }
783 if (isTS && type == "(") return pass(functiondecl, classBody)
784 if (type == ";" || type == ",") return cont(classBody);
785 if (type == "}") return cont();
786 if (value == "@") return cont(expression, classBody)
787 }
788 function classfield(type, value) {
789 if (value == "?") return cont(classfield)
790 if (type == ":") return cont(typeexpr, maybeAssign)

Callers

nothing calls this directly

Calls 4

isModifierFunction · 0.85
contFunction · 0.85
expectFunction · 0.85
passFunction · 0.85

Tested by

no test coverage detected