MCPcopy Create free account
hub / github.com/TextGeneratorio/text-generator.io / afterExport

Function afterExport

static/libs/javascript.js:810–815  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

808 return pass(isInterface ? functiondecl : functiondef)
809 }
810 function afterExport(type, value) {
811 if (value == "*") { cx.marked = "keyword"; return cont(maybeFrom, expect(";")); }
812 if (value == "default") { cx.marked = "keyword"; return cont(expression, expect(";")); }
813 if (type == "{") return cont(commasep(exportField, "}"), maybeFrom, expect(";"));
814 return pass(statement);
815 }
816 function exportField(type, value) {
817 if (value == "as") { cx.marked = "keyword"; return cont(expect("variable")); }
818 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.70

Tested by

no test coverage detected