MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / afterExport

Function afterExport

lib/web/CodeMirror/mode/javascript/javascript.js:790–795  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

788 return pass(isInterface ? functiondecl : functiondef)
789 }
790 function afterExport(type, value) {
791 if (value == "*") { cx.marked = "keyword"; return cont(maybeFrom, expect(";")); }
792 if (value == "default") { cx.marked = "keyword"; return cont(expression, expect(";")); }
793 if (type == "{") return cont(commasep(exportField, "}"), maybeFrom, expect(";"));
794 return pass(statement);
795 }
796 function exportField(type, value) {
797 if (value == "as") { cx.marked = "keyword"; return cont(expect("variable")); }
798 if (type == "variable") return pass(expressionNoComma, exportField);

Callers

nothing calls this directly

Calls 4

contFunction · 0.70
expectFunction · 0.70
commasepFunction · 0.70
passFunction · 0.70

Tested by

no test coverage detected