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

Function afterExport

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

Source from the content-addressed store, hash-verified

664 return pass(functiondef)
665 }
666 function afterExport(type, value) {
667 if (value == "*") { cx.marked = "keyword"; return cont(maybeFrom, expect(";")); }
668 if (value == "default") { cx.marked = "keyword"; return cont(expression, expect(";")); }
669 if (type == "{") return cont(commasep(exportField, "}"), maybeFrom, expect(";"));
670 return pass(statement);
671 }
672 function exportField(type, value) {
673 if (value == "as") { cx.marked = "keyword"; return cont(expect("variable")); }
674 if (type == "variable") return pass(expressionNoComma, exportField);

Callers

nothing calls this directly

Calls 4

contFunction · 0.85
expectFunction · 0.85
commasepFunction · 0.85
passFunction · 0.85

Tested by

no test coverage detected