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

Function createExportStatement

test/fixtures/snapshot/typescript.js:105576–105583  ·  view source on GitHub ↗

* Creates a call to the current file's export function to export a value. * * @param name The bound name of the export. * @param value The exported value. * @param location The location to use for source maps and comments for the export. * @param allowCom

(name, value, location, allowComments, liveBinding)

Source from the content-addressed store, hash-verified

105574 * @param allowComments An optional value indicating whether to emit comments for the statement.
105575 */
105576 function createExportStatement(name, value, location, allowComments, liveBinding) {
105577 var statement = ts.setTextRange(factory.createExpressionStatement(createExportExpression(name, value, /* location */ undefined, liveBinding)), location);
105578 ts.startOnNewLine(statement);
105579 if (!allowComments) {
105580 ts.setEmitFlags(statement, 1536 /* EmitFlags.NoComments */);
105581 }
105582 return statement;
105583 }
105584 /**
105585 * Creates a call to the current file's export function to export a value.
105586 *

Callers 2

appendExportStatementFunction · 0.85
visitExportAssignmentFunction · 0.85

Calls 1

createExportExpressionFunction · 0.85

Tested by

no test coverage detected