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

Function forspec1

public/codemirror/javascript/javascript.js:601–606  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

599 if (type == "(") return cont(pushlex(")"), forspec1, expect(")"), poplex);
600 }
601 function forspec1(type) {
602 if (type == "var") return cont(vardef, expect(";"), forspec2);
603 if (type == ";") return cont(forspec2);
604 if (type == "variable") return cont(formaybeinof);
605 return pass(expression, expect(";"), forspec2);
606 }
607 function formaybeinof(_type, value) {
608 if (value == "in" || value == "of") { cx.marked = "keyword"; return cont(expression); }
609 return cont(maybeoperatorComma, forspec2);

Callers

nothing calls this directly

Calls 3

contFunction · 0.85
expectFunction · 0.85
passFunction · 0.85

Tested by

no test coverage detected