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

Function objprop

public/codemirror/javascript/javascript.js:476–498  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

474 if (type == "variable") {cx.marked = "property"; return cont();}
475 }
476 function objprop(type, value) {
477 if (type == "async") {
478 cx.marked = "property";
479 return cont(objprop);
480 } else if (type == "variable" || cx.style == "keyword") {
481 cx.marked = "property";
482 if (value == "get" || value == "set") return cont(getterSetter);
483 return cont(afterprop);
484 } else if (type == "number" || type == "string") {
485 cx.marked = jsonldMode ? "property" : (cx.style + " property");
486 return cont(afterprop);
487 } else if (type == "jsonld-keyword") {
488 return cont(afterprop);
489 } else if (type == "modifier") {
490 return cont(objprop)
491 } else if (type == "[") {
492 return cont(expression, expect("]"), afterprop);
493 } else if (type == "spread") {
494 return cont(expression);
495 } else if (type == ":") {
496 return pass(afterprop)
497 }
498 }
499 function getterSetter(type) {
500 if (type != "variable") return pass(afterprop);
501 cx.marked = "property";

Callers

nothing calls this directly

Calls 3

contFunction · 0.85
expectFunction · 0.85
passFunction · 0.85

Tested by

no test coverage detected