src/com/google/javascript/jscomp/NodeUtil.java
/**
   * @return Whether the name in an import or export spec is not defined within the module, but is
   *     an exported name from this or another module. e.g. nonlocal in "export {a as nonlocal}" or
   *     "import {nonlocal as a} from './foo.js'"
   */
@return Whether the name in an import or export spec is not defined within the module, but is
an exported name from this or another module.
@return Whether the name in an import or export spec is not defined within the module but is an exported name from this or another module .
static boolean isNonlocalModuleExportName(Node n) {
    Node parent = n.getParent();
    return (parent != null
            && n.isName()
            && ((parent.isExportSpec() && n != parent.getFirstChild())
                || (parent.isImportSpec() && n != parent.getLastChild())));
  }
static boolean isNonlocalModuleExportName ( Node n ) { Node parent = n . getParent ( ) ; return ( parent != null && n . isName ( ) && ( ( parent . isExportSpec ( ) && n != parent . getFirstChild ( ) ) || ( parent . isImportSpec ( ) && n != parent . getLastChild ( ) ) ) ) ; }
@return Whether the name in an import or export spec is not defined within the module, but is
     an exported name from this or another module.
@return Whether the name in an import or export spec is not defined within the module but is an exported name from this or another module .