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

Function createExportAssignment

test/fixtures/snapshot/typescript.js:25482–25491  ·  view source on GitHub ↗
(decorators, modifiers, isExportEquals, expression)

Source from the content-addressed store, hash-verified

25480 }
25481 // @api
25482 function createExportAssignment(decorators, modifiers, isExportEquals, expression) {
25483 var node = createBaseDeclaration(271 /* SyntaxKind.ExportAssignment */, decorators, modifiers);
25484 node.isExportEquals = isExportEquals;
25485 node.expression = isExportEquals
25486 ? parenthesizerRules().parenthesizeRightSideOfBinary(63 /* SyntaxKind.EqualsToken */, /*leftSide*/ undefined, expression)
25487 : parenthesizerRules().parenthesizeExpressionOfExportDefault(expression);
25488 node.transformFlags |= propagateChildFlags(node.expression);
25489 node.transformFlags &= ~16777216 /* TransformFlags.ContainsPossibleTopLevelAwait */; // always parsed in an Await context
25490 return node;
25491 }
25492 // @api
25493 function updateExportAssignment(node, decorators, modifiers, expression) {
25494 return node.decorators !== decorators

Callers 2

updateExportAssignmentFunction · 0.85
createExportDefaultFunction · 0.85

Calls 2

createBaseDeclarationFunction · 0.85
propagateChildFlagsFunction · 0.85

Tested by

no test coverage detected