Skip to content

Commit 4087757

Browse files
author
TypeScript Bot
committed
Bump version to 3.9.4 and LKG
1 parent d49ad7a commit 4087757

File tree

8 files changed

+60
-71
lines changed

8 files changed

+60
-71
lines changed

lib/tsc.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
6767
var ts;
6868
(function (ts) {
6969
ts.versionMajorMinor = "3.9";
70-
ts.version = "3.9.3";
70+
ts.version = "3.9.4";
7171
function tryGetNativeMap() {
7272
return typeof Map !== "undefined" && "entries" in Map.prototype ? Map : undefined;
7373
}
@@ -65536,6 +65536,8 @@ var ts;
6553665536
facts |= 32;
6553765537
else if (isNamedExternalModuleExport(node))
6553865538
facts |= 16;
65539+
if (languageVersion <= 1 && (facts & 7))
65540+
facts |= 128;
6553965541
return facts;
6554065542
}
6554165543
function hasTypeScriptClassSyntax(node) {
@@ -65553,7 +65555,7 @@ var ts;
6555365555
}
6555465556
var staticProperties = ts.getProperties(node, true, true);
6555565557
var facts = getClassFacts(node, staticProperties);
65556-
if (facts & 7) {
65558+
if (facts & 128) {
6555765559
context.startLexicalEnvironment();
6555865560
}
6555965561
var name = node.name || (facts & 5 ? ts.getGeneratedNameForNode(node) : undefined);
@@ -65564,7 +65566,7 @@ var ts;
6556465566
addClassElementDecorationStatements(statements, node, false);
6556565567
addClassElementDecorationStatements(statements, node, true);
6556665568
addConstructorDecorationStatement(statements, node);
65567-
if (facts & 7) {
65569+
if (facts & 128) {
6556865570
var closingBraceLocation = ts.createTokenRange(ts.skipTrivia(currentSourceFile.text, node.members.end), 19);
6556965571
var localName = ts.getInternalName(node);
6557065572
var outer = ts.createPartiallyEmittedExpression(localName);
@@ -65577,12 +65579,9 @@ var ts;
6557765579
ts.insertStatementsAfterStandardPrologue(statements, context.endLexicalEnvironment());
6557865580
var iife = ts.createImmediatelyInvokedArrowFunction(statements);
6557965581
ts.setEmitFlags(iife, 33554432);
65580-
if (languageVersion > 1) {
65581-
ts.addSyntheticLeadingComment(iife, 3, "* @class ");
65582-
}
6558365582
var varStatement = ts.createVariableStatement(undefined, ts.createVariableDeclarationList([
6558465583
ts.createVariableDeclaration(ts.getLocalName(node, false, false), undefined, iife)
65585-
], languageVersion > 1 ? 1 : undefined));
65584+
]));
6558665585
ts.setOriginalNode(varStatement, node);
6558765586
ts.setCommentRange(varStatement, node);
6558865587
ts.setSourceMapRange(varStatement, ts.moveRangePastDecorators(node));
@@ -65592,7 +65591,7 @@ var ts;
6559265591
if (facts & 8) {
6559365592
addExportMemberAssignment(statements, node);
6559465593
}
65595-
else if (facts & 7 || facts & 2) {
65594+
else if (facts & 128 || facts & 2) {
6559665595
if (facts & 32) {
6559765596
statements.push(ts.createExportDefault(ts.getLocalName(node, false, true)));
6559865597
}
@@ -65607,7 +65606,7 @@ var ts;
6560765606
return ts.singleOrMany(statements);
6560865607
}
6560965608
function createClassDeclarationHeadWithoutDecorators(node, name, facts) {
65610-
var modifiers = !(facts & 7)
65609+
var modifiers = !(facts & 128)
6561165610
? ts.visitNodes(node.modifiers, modifierVisitor, ts.isModifier)
6561265611
: undefined;
6561365612
var classDeclaration = ts.createClassDeclaration(undefined, modifiers, name, undefined, ts.visitNodes(node.heritageClauses, visitor, ts.isHeritageClause), transformClassMembers(node));

lib/tsserver.js

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ var ts;
9494
// If changing the text in this section, be sure to test `configurePrerelease` too.
9595
ts.versionMajorMinor = "3.9";
9696
/** The version of the TypeScript compiler release */
97-
ts.version = "3.9.3";
97+
ts.version = "3.9.4";
9898
/**
9999
* Returns the native Map implementation if it is available and compatible (i.e. supports iteration).
100100
*/
@@ -77269,9 +77269,10 @@ var ts;
7726977269
ClassFacts[ClassFacts["IsNamedExternalExport"] = 16] = "IsNamedExternalExport";
7727077270
ClassFacts[ClassFacts["IsDefaultExternalExport"] = 32] = "IsDefaultExternalExport";
7727177271
ClassFacts[ClassFacts["IsDerivedClass"] = 64] = "IsDerivedClass";
77272+
ClassFacts[ClassFacts["UseImmediatelyInvokedFunctionExpression"] = 128] = "UseImmediatelyInvokedFunctionExpression";
7727277273
ClassFacts[ClassFacts["HasAnyDecorators"] = 6] = "HasAnyDecorators";
7727377274
ClassFacts[ClassFacts["NeedsName"] = 5] = "NeedsName";
77274-
ClassFacts[ClassFacts["UseImmediatelyInvokedFunctionExpression"] = 7] = "UseImmediatelyInvokedFunctionExpression";
77275+
ClassFacts[ClassFacts["MayNeedImmediatelyInvokedFunctionExpression"] = 7] = "MayNeedImmediatelyInvokedFunctionExpression";
7727577276
ClassFacts[ClassFacts["IsExported"] = 56] = "IsExported";
7727677277
})(ClassFacts || (ClassFacts = {}));
7727777278
function transformTypeScript(context) {
@@ -77758,6 +77759,8 @@ var ts;
7775877759
facts |= 32 /* IsDefaultExternalExport */;
7775977760
else if (isNamedExternalModuleExport(node))
7776077761
facts |= 16 /* IsNamedExternalExport */;
77762+
if (languageVersion <= 1 /* ES5 */ && (facts & 7 /* MayNeedImmediatelyInvokedFunctionExpression */))
77763+
facts |= 128 /* UseImmediatelyInvokedFunctionExpression */;
7776177764
return facts;
7776277765
}
7776377766
function hasTypeScriptClassSyntax(node) {
@@ -77775,7 +77778,7 @@ var ts;
7777577778
}
7777677779
var staticProperties = ts.getProperties(node, /*requireInitializer*/ true, /*isStatic*/ true);
7777777780
var facts = getClassFacts(node, staticProperties);
77778-
if (facts & 7 /* UseImmediatelyInvokedFunctionExpression */) {
77781+
if (facts & 128 /* UseImmediatelyInvokedFunctionExpression */) {
7777977782
context.startLexicalEnvironment();
7778077783
}
7778177784
var name = node.name || (facts & 5 /* NeedsName */ ? ts.getGeneratedNameForNode(node) : undefined);
@@ -77787,7 +77790,7 @@ var ts;
7778777790
addClassElementDecorationStatements(statements, node, /*isStatic*/ false);
7778877791
addClassElementDecorationStatements(statements, node, /*isStatic*/ true);
7778977792
addConstructorDecorationStatement(statements, node);
77790-
if (facts & 7 /* UseImmediatelyInvokedFunctionExpression */) {
77793+
if (facts & 128 /* UseImmediatelyInvokedFunctionExpression */) {
7779177794
// When we emit a TypeScript class down to ES5, we must wrap it in an IIFE so that the
7779277795
// 'es2015' transformer can properly nest static initializers and decorators. The result
7779377796
// looks something like:
@@ -77813,16 +77816,11 @@ var ts;
7781377816
ts.insertStatementsAfterStandardPrologue(statements, context.endLexicalEnvironment());
7781477817
var iife = ts.createImmediatelyInvokedArrowFunction(statements);
7781577818
ts.setEmitFlags(iife, 33554432 /* TypeScriptClassWrapper */);
77816-
// Class comment is already added by the ES2015 transform when targeting ES5 or below.
77817-
// Only add if targetting ES2015+ to prevent duplicates
77818-
if (languageVersion > 1 /* ES5 */) {
77819-
ts.addSyntheticLeadingComment(iife, 3 /* MultiLineCommentTrivia */, "* @class ");
77820-
}
7782177819
var varStatement = ts.createVariableStatement(
7782277820
/*modifiers*/ undefined, ts.createVariableDeclarationList([
7782377821
ts.createVariableDeclaration(ts.getLocalName(node, /*allowComments*/ false, /*allowSourceMaps*/ false),
7782477822
/*type*/ undefined, iife)
77825-
], languageVersion > 1 /* ES5 */ ? 1 /* Let */ : undefined));
77823+
]));
7782677824
ts.setOriginalNode(varStatement, node);
7782777825
ts.setCommentRange(varStatement, node);
7782877826
ts.setSourceMapRange(varStatement, ts.moveRangePastDecorators(node));
@@ -77835,7 +77833,7 @@ var ts;
7783577833
if (facts & 8 /* IsExportOfNamespace */) {
7783677834
addExportMemberAssignment(statements, node);
7783777835
}
77838-
else if (facts & 7 /* UseImmediatelyInvokedFunctionExpression */ || facts & 2 /* HasConstructorDecorators */) {
77836+
else if (facts & 128 /* UseImmediatelyInvokedFunctionExpression */ || facts & 2 /* HasConstructorDecorators */) {
7783977837
if (facts & 32 /* IsDefaultExternalExport */) {
7784077838
statements.push(ts.createExportDefault(ts.getLocalName(node, /*allowComments*/ false, /*allowSourceMaps*/ true)));
7784177839
}
@@ -77862,7 +77860,7 @@ var ts;
7786277860
// ${members}
7786377861
// }
7786477862
// we do not emit modifiers on the declaration if we are emitting an IIFE
77865-
var modifiers = !(facts & 7 /* UseImmediatelyInvokedFunctionExpression */)
77863+
var modifiers = !(facts & 128 /* UseImmediatelyInvokedFunctionExpression */)
7786677864
? ts.visitNodes(node.modifiers, modifierVisitor, ts.isModifier)
7786777865
: undefined;
7786877866
var classDeclaration = ts.createClassDeclaration(

lib/tsserverlibrary.js

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ var ts;
244244
// If changing the text in this section, be sure to test `configurePrerelease` too.
245245
ts.versionMajorMinor = "3.9";
246246
/** The version of the TypeScript compiler release */
247-
ts.version = "3.9.3";
247+
ts.version = "3.9.4";
248248
/**
249249
* Returns the native Map implementation if it is available and compatible (i.e. supports iteration).
250250
*/
@@ -77419,9 +77419,10 @@ var ts;
7741977419
ClassFacts[ClassFacts["IsNamedExternalExport"] = 16] = "IsNamedExternalExport";
7742077420
ClassFacts[ClassFacts["IsDefaultExternalExport"] = 32] = "IsDefaultExternalExport";
7742177421
ClassFacts[ClassFacts["IsDerivedClass"] = 64] = "IsDerivedClass";
77422+
ClassFacts[ClassFacts["UseImmediatelyInvokedFunctionExpression"] = 128] = "UseImmediatelyInvokedFunctionExpression";
7742277423
ClassFacts[ClassFacts["HasAnyDecorators"] = 6] = "HasAnyDecorators";
7742377424
ClassFacts[ClassFacts["NeedsName"] = 5] = "NeedsName";
77424-
ClassFacts[ClassFacts["UseImmediatelyInvokedFunctionExpression"] = 7] = "UseImmediatelyInvokedFunctionExpression";
77425+
ClassFacts[ClassFacts["MayNeedImmediatelyInvokedFunctionExpression"] = 7] = "MayNeedImmediatelyInvokedFunctionExpression";
7742577426
ClassFacts[ClassFacts["IsExported"] = 56] = "IsExported";
7742677427
})(ClassFacts || (ClassFacts = {}));
7742777428
function transformTypeScript(context) {
@@ -77908,6 +77909,8 @@ var ts;
7790877909
facts |= 32 /* IsDefaultExternalExport */;
7790977910
else if (isNamedExternalModuleExport(node))
7791077911
facts |= 16 /* IsNamedExternalExport */;
77912+
if (languageVersion <= 1 /* ES5 */ && (facts & 7 /* MayNeedImmediatelyInvokedFunctionExpression */))
77913+
facts |= 128 /* UseImmediatelyInvokedFunctionExpression */;
7791177914
return facts;
7791277915
}
7791377916
function hasTypeScriptClassSyntax(node) {
@@ -77925,7 +77928,7 @@ var ts;
7792577928
}
7792677929
var staticProperties = ts.getProperties(node, /*requireInitializer*/ true, /*isStatic*/ true);
7792777930
var facts = getClassFacts(node, staticProperties);
77928-
if (facts & 7 /* UseImmediatelyInvokedFunctionExpression */) {
77931+
if (facts & 128 /* UseImmediatelyInvokedFunctionExpression */) {
7792977932
context.startLexicalEnvironment();
7793077933
}
7793177934
var name = node.name || (facts & 5 /* NeedsName */ ? ts.getGeneratedNameForNode(node) : undefined);
@@ -77937,7 +77940,7 @@ var ts;
7793777940
addClassElementDecorationStatements(statements, node, /*isStatic*/ false);
7793877941
addClassElementDecorationStatements(statements, node, /*isStatic*/ true);
7793977942
addConstructorDecorationStatement(statements, node);
77940-
if (facts & 7 /* UseImmediatelyInvokedFunctionExpression */) {
77943+
if (facts & 128 /* UseImmediatelyInvokedFunctionExpression */) {
7794177944
// When we emit a TypeScript class down to ES5, we must wrap it in an IIFE so that the
7794277945
// 'es2015' transformer can properly nest static initializers and decorators. The result
7794377946
// looks something like:
@@ -77963,16 +77966,11 @@ var ts;
7796377966
ts.insertStatementsAfterStandardPrologue(statements, context.endLexicalEnvironment());
7796477967
var iife = ts.createImmediatelyInvokedArrowFunction(statements);
7796577968
ts.setEmitFlags(iife, 33554432 /* TypeScriptClassWrapper */);
77966-
// Class comment is already added by the ES2015 transform when targeting ES5 or below.
77967-
// Only add if targetting ES2015+ to prevent duplicates
77968-
if (languageVersion > 1 /* ES5 */) {
77969-
ts.addSyntheticLeadingComment(iife, 3 /* MultiLineCommentTrivia */, "* @class ");
77970-
}
7797177969
var varStatement = ts.createVariableStatement(
7797277970
/*modifiers*/ undefined, ts.createVariableDeclarationList([
7797377971
ts.createVariableDeclaration(ts.getLocalName(node, /*allowComments*/ false, /*allowSourceMaps*/ false),
7797477972
/*type*/ undefined, iife)
77975-
], languageVersion > 1 /* ES5 */ ? 1 /* Let */ : undefined));
77973+
]));
7797677974
ts.setOriginalNode(varStatement, node);
7797777975
ts.setCommentRange(varStatement, node);
7797877976
ts.setSourceMapRange(varStatement, ts.moveRangePastDecorators(node));
@@ -77985,7 +77983,7 @@ var ts;
7798577983
if (facts & 8 /* IsExportOfNamespace */) {
7798677984
addExportMemberAssignment(statements, node);
7798777985
}
77988-
else if (facts & 7 /* UseImmediatelyInvokedFunctionExpression */ || facts & 2 /* HasConstructorDecorators */) {
77986+
else if (facts & 128 /* UseImmediatelyInvokedFunctionExpression */ || facts & 2 /* HasConstructorDecorators */) {
7798977987
if (facts & 32 /* IsDefaultExternalExport */) {
7799077988
statements.push(ts.createExportDefault(ts.getLocalName(node, /*allowComments*/ false, /*allowSourceMaps*/ true)));
7799177989
}
@@ -78012,7 +78010,7 @@ var ts;
7801278010
// ${members}
7801378011
// }
7801478012
// we do not emit modifiers on the declaration if we are emitting an IIFE
78015-
var modifiers = !(facts & 7 /* UseImmediatelyInvokedFunctionExpression */)
78013+
var modifiers = !(facts & 128 /* UseImmediatelyInvokedFunctionExpression */)
7801678014
? ts.visitNodes(node.modifiers, modifierVisitor, ts.isModifier)
7801778015
: undefined;
7801878016
var classDeclaration = ts.createClassDeclaration(

lib/typescript.js

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ var ts;
244244
// If changing the text in this section, be sure to test `configurePrerelease` too.
245245
ts.versionMajorMinor = "3.9";
246246
/** The version of the TypeScript compiler release */
247-
ts.version = "3.9.3";
247+
ts.version = "3.9.4";
248248
/**
249249
* Returns the native Map implementation if it is available and compatible (i.e. supports iteration).
250250
*/
@@ -77419,9 +77419,10 @@ var ts;
7741977419
ClassFacts[ClassFacts["IsNamedExternalExport"] = 16] = "IsNamedExternalExport";
7742077420
ClassFacts[ClassFacts["IsDefaultExternalExport"] = 32] = "IsDefaultExternalExport";
7742177421
ClassFacts[ClassFacts["IsDerivedClass"] = 64] = "IsDerivedClass";
77422+
ClassFacts[ClassFacts["UseImmediatelyInvokedFunctionExpression"] = 128] = "UseImmediatelyInvokedFunctionExpression";
7742277423
ClassFacts[ClassFacts["HasAnyDecorators"] = 6] = "HasAnyDecorators";
7742377424
ClassFacts[ClassFacts["NeedsName"] = 5] = "NeedsName";
77424-
ClassFacts[ClassFacts["UseImmediatelyInvokedFunctionExpression"] = 7] = "UseImmediatelyInvokedFunctionExpression";
77425+
ClassFacts[ClassFacts["MayNeedImmediatelyInvokedFunctionExpression"] = 7] = "MayNeedImmediatelyInvokedFunctionExpression";
7742577426
ClassFacts[ClassFacts["IsExported"] = 56] = "IsExported";
7742677427
})(ClassFacts || (ClassFacts = {}));
7742777428
function transformTypeScript(context) {
@@ -77908,6 +77909,8 @@ var ts;
7790877909
facts |= 32 /* IsDefaultExternalExport */;
7790977910
else if (isNamedExternalModuleExport(node))
7791077911
facts |= 16 /* IsNamedExternalExport */;
77912+
if (languageVersion <= 1 /* ES5 */ && (facts & 7 /* MayNeedImmediatelyInvokedFunctionExpression */))
77913+
facts |= 128 /* UseImmediatelyInvokedFunctionExpression */;
7791177914
return facts;
7791277915
}
7791377916
function hasTypeScriptClassSyntax(node) {
@@ -77925,7 +77928,7 @@ var ts;
7792577928
}
7792677929
var staticProperties = ts.getProperties(node, /*requireInitializer*/ true, /*isStatic*/ true);
7792777930
var facts = getClassFacts(node, staticProperties);
77928-
if (facts & 7 /* UseImmediatelyInvokedFunctionExpression */) {
77931+
if (facts & 128 /* UseImmediatelyInvokedFunctionExpression */) {
7792977932
context.startLexicalEnvironment();
7793077933
}
7793177934
var name = node.name || (facts & 5 /* NeedsName */ ? ts.getGeneratedNameForNode(node) : undefined);
@@ -77937,7 +77940,7 @@ var ts;
7793777940
addClassElementDecorationStatements(statements, node, /*isStatic*/ false);
7793877941
addClassElementDecorationStatements(statements, node, /*isStatic*/ true);
7793977942
addConstructorDecorationStatement(statements, node);
77940-
if (facts & 7 /* UseImmediatelyInvokedFunctionExpression */) {
77943+
if (facts & 128 /* UseImmediatelyInvokedFunctionExpression */) {
7794177944
// When we emit a TypeScript class down to ES5, we must wrap it in an IIFE so that the
7794277945
// 'es2015' transformer can properly nest static initializers and decorators. The result
7794377946
// looks something like:
@@ -77963,16 +77966,11 @@ var ts;
7796377966
ts.insertStatementsAfterStandardPrologue(statements, context.endLexicalEnvironment());
7796477967
var iife = ts.createImmediatelyInvokedArrowFunction(statements);
7796577968
ts.setEmitFlags(iife, 33554432 /* TypeScriptClassWrapper */);
77966-
// Class comment is already added by the ES2015 transform when targeting ES5 or below.
77967-
// Only add if targetting ES2015+ to prevent duplicates
77968-
if (languageVersion > 1 /* ES5 */) {
77969-
ts.addSyntheticLeadingComment(iife, 3 /* MultiLineCommentTrivia */, "* @class ");
77970-
}
7797177969
var varStatement = ts.createVariableStatement(
7797277970
/*modifiers*/ undefined, ts.createVariableDeclarationList([
7797377971
ts.createVariableDeclaration(ts.getLocalName(node, /*allowComments*/ false, /*allowSourceMaps*/ false),
7797477972
/*type*/ undefined, iife)
77975-
], languageVersion > 1 /* ES5 */ ? 1 /* Let */ : undefined));
77973+
]));
7797677974
ts.setOriginalNode(varStatement, node);
7797777975
ts.setCommentRange(varStatement, node);
7797877976
ts.setSourceMapRange(varStatement, ts.moveRangePastDecorators(node));
@@ -77985,7 +77983,7 @@ var ts;
7798577983
if (facts & 8 /* IsExportOfNamespace */) {
7798677984
addExportMemberAssignment(statements, node);
7798777985
}
77988-
else if (facts & 7 /* UseImmediatelyInvokedFunctionExpression */ || facts & 2 /* HasConstructorDecorators */) {
77986+
else if (facts & 128 /* UseImmediatelyInvokedFunctionExpression */ || facts & 2 /* HasConstructorDecorators */) {
7798977987
if (facts & 32 /* IsDefaultExternalExport */) {
7799077988
statements.push(ts.createExportDefault(ts.getLocalName(node, /*allowComments*/ false, /*allowSourceMaps*/ true)));
7799177989
}
@@ -78012,7 +78010,7 @@ var ts;
7801278010
// ${members}
7801378011
// }
7801478012
// we do not emit modifiers on the declaration if we are emitting an IIFE
78015-
var modifiers = !(facts & 7 /* UseImmediatelyInvokedFunctionExpression */)
78013+
var modifiers = !(facts & 128 /* UseImmediatelyInvokedFunctionExpression */)
7801678014
? ts.visitNodes(node.modifiers, modifierVisitor, ts.isModifier)
7801778015
: undefined;
7801878016
var classDeclaration = ts.createClassDeclaration(

0 commit comments

Comments
 (0)