// ECMA-262 15.2.2 Imports public Node parseImportSpecifier() { // import {<foo as bar>} ...; Node local = null; Node imported; Node node = new Node(); imported = parseNonComputedProperty(); if (matchContextualKeyword("as")) { lex(); local = parseVariableIdentifier(); } return node.finishImportSpecifier(local, imported); }