MCPcopy
hub / github.com/jagenjo/webglstudio.js / objprop

Function objprop

editor/js/extra/codemirror/javascript.js:304–312  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

302 if (type == "variable") {cx.marked = "property"; return cont();}
303 }
304 function objprop(type, value) {
305 if (type == "variable") {
306 cx.marked = "property";
307 if (value == "get" || value == "set") return cont(getterSetter);
308 } else if (type == "number" || type == "string") {
309 cx.marked = type + " property";
310 }
311 if (atomicTypes.hasOwnProperty(type)) return cont(expect(":"), expression);
312 }
313 function getterSetter(type) {
314 if (type == ":") return cont(expression);
315 if (type != "variable") return cont(expect(":"), expression);

Callers

nothing calls this directly

Calls 2

contFunction · 0.85
expectFunction · 0.85

Tested by

no test coverage detected