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