| 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); |