// ECMA-262 15.2.3 Exports public Node parseExportSpecifier() { Node exported = null; Node local; Node node = new Node(); Node def; if (matchKeyword("default")) { // export {default} from "something"; def = new Node(); lex(); local = def.finishIdentifier("default"); } else { local = parseVariableIdentifier(); } if (matchContextualKeyword("as")) { lex(); exported = parseNonComputedProperty(); } return node.finishExportSpecifier(local, exported); }