MCPcopy
hub / github.com/node-inspector/node-inspector / objprop

Function objprop

front-end/cm/javascript.js:432–445  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

430 if (type == "variable") {cx.marked = "property"; return cont();}
431 }
432 function objprop(type, value) {
433 if (type == "variable" || cx.style == "keyword") {
434 cx.marked = "property";
435 if (value == "get" || value == "set") return cont(getterSetter);
436 return cont(afterprop);
437 } else if (type == "number" || type == "string") {
438 cx.marked = jsonldMode ? "property" : (cx.style + " property");
439 return cont(afterprop);
440 } else if (type == "jsonld-keyword") {
441 return cont(afterprop);
442 } else if (type == "[") {
443 return cont(expression, expect("]"), afterprop);
444 }
445 }
446 function getterSetter(type) {
447 if (type != "variable") return pass(afterprop);
448 cx.marked = "property";

Callers

nothing calls this directly

Calls 2

contFunction · 0.85
expectFunction · 0.70

Tested by

no test coverage detected