mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-07-13 22:53:33 -05:00
added comments, fixed typo
This commit is contained in:
@@ -2046,11 +2046,12 @@ var __param = this.__param || function(index, decorator) { return function (targ
|
||||
}
|
||||
else {
|
||||
const exportChanged =
|
||||
node.operatorToken.kind <= SyntaxKind.LastAssignment &&
|
||||
node.operatorToken.kind >= SyntaxKind.FirstAssignment &&
|
||||
node.operatorToken.kind <= SyntaxKind.LastAssignment &&
|
||||
isNameOfExportedSourceLevelDeclarationInSystemExternalModule(node.left);
|
||||
|
||||
if (exportChanged) {
|
||||
// emit assignment 'x <op> y' as 'exports("x", x <op> y)'
|
||||
write(`${exportFunctionForFile}("`);
|
||||
emitNodeWithoutSourceMap(node.left);
|
||||
write(`", `);
|
||||
|
||||
Reference in New Issue
Block a user