* 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)
| 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 | * |
no test coverage detected