MCPcopy Index your code
hub / github.com/nodejs/node / appendExportsOfVariableStatement

Function appendExportsOfVariableStatement

test/fixtures/snapshot/typescript.js:105457–105466  ·  view source on GitHub ↗

* Appends the exports of a VariableStatement to a statement list, returning the statement * list. * * @param statements A statement list to which the down-level export statements are to be * appended. If `statements` is `undefined`, a new array is allocated if sta

(statements, node)

Source from the content-addressed store, hash-verified

105455 * @param node The VariableStatement whose exports are to be recorded.
105456 */
105457 function appendExportsOfVariableStatement(statements, node) {
105458 if (currentModuleInfo.exportEquals) {
105459 return statements;
105460 }
105461 for (var _i = 0, _a = node.declarationList.declarations; _i < _a.length; _i++) {
105462 var decl = _a[_i];
105463 statements = appendExportsOfBindingElement(statements, decl);
105464 }
105465 return statements;
105466 }
105467 /**
105468 * Appends the exports of a VariableDeclaration or BindingElement to a statement list,
105469 * returning the statement list.

Callers 2

visitVariableStatementFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…