typescript 4.3.0-dev.20210508 → 4.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/tsc.js +49 -45
- package/lib/tsserver.js +104 -62
- package/lib/tsserverlibrary.js +104 -62
- package/lib/typescript.js +104 -62
- package/lib/typescriptServices.js +104 -62
- package/lib/typingsInstaller.js +53 -46
- package/package.json +2 -2
package/lib/typingsInstaller.js
CHANGED
|
@@ -85,7 +85,7 @@ var ts;
|
|
|
85
85
|
// The following is baselined as a literal template type without intervention
|
|
86
86
|
/** The version of the TypeScript compiler release */
|
|
87
87
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
88
|
-
ts.version =
|
|
88
|
+
ts.version = "4.3.2";
|
|
89
89
|
/* @internal */
|
|
90
90
|
var Comparison;
|
|
91
91
|
(function (Comparison) {
|
|
@@ -7678,7 +7678,7 @@ var ts;
|
|
|
7678
7678
|
Identifier_expected: diag(1003, ts.DiagnosticCategory.Error, "Identifier_expected_1003", "Identifier expected."),
|
|
7679
7679
|
_0_expected: diag(1005, ts.DiagnosticCategory.Error, "_0_expected_1005", "'{0}' expected."),
|
|
7680
7680
|
A_file_cannot_have_a_reference_to_itself: diag(1006, ts.DiagnosticCategory.Error, "A_file_cannot_have_a_reference_to_itself_1006", "A file cannot have a reference to itself."),
|
|
7681
|
-
|
|
7681
|
+
The_parser_expected_to_find_a_to_match_the_token_here: diag(1007, ts.DiagnosticCategory.Error, "The_parser_expected_to_find_a_to_match_the_token_here_1007", "The parser expected to find a '}' to match the '{' token here."),
|
|
7682
7682
|
Trailing_comma_not_allowed: diag(1009, ts.DiagnosticCategory.Error, "Trailing_comma_not_allowed_1009", "Trailing comma not allowed."),
|
|
7683
7683
|
Asterisk_Slash_expected: diag(1010, ts.DiagnosticCategory.Error, "Asterisk_Slash_expected_1010", "'*/' expected."),
|
|
7684
7684
|
An_element_access_expression_should_take_an_argument: diag(1011, ts.DiagnosticCategory.Error, "An_element_access_expression_should_take_an_argument_1011", "An element access expression should take an argument."),
|
|
@@ -8601,7 +8601,7 @@ var ts;
|
|
|
8601
8601
|
This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class: diag(4112, ts.DiagnosticCategory.Error, "This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112", "This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),
|
|
8602
8602
|
This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0: diag(4113, ts.DiagnosticCategory.Error, "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113", "This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),
|
|
8603
8603
|
This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0: diag(4114, ts.DiagnosticCategory.Error, "This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114", "This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),
|
|
8604
|
-
|
|
8604
|
+
This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0: diag(4115, ts.DiagnosticCategory.Error, "This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115", "This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),
|
|
8605
8605
|
This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0: diag(4116, ts.DiagnosticCategory.Error, "This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116", "This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),
|
|
8606
8606
|
The_current_host_does_not_support_the_0_option: diag(5001, ts.DiagnosticCategory.Error, "The_current_host_does_not_support_the_0_option_5001", "The current host does not support the '{0}' option."),
|
|
8607
8607
|
Cannot_find_the_common_subdirectory_path_for_the_input_files: diag(5009, ts.DiagnosticCategory.Error, "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009", "Cannot find the common subdirectory path for the input files."),
|
|
@@ -30019,23 +30019,20 @@ var ts;
|
|
|
30019
30019
|
return inContext(32768 /* AwaitContext */);
|
|
30020
30020
|
}
|
|
30021
30021
|
function parseErrorAtCurrentToken(message, arg0) {
|
|
30022
|
-
|
|
30022
|
+
parseErrorAt(scanner.getTokenPos(), scanner.getTextPos(), message, arg0);
|
|
30023
30023
|
}
|
|
30024
30024
|
function parseErrorAtPosition(start, length, message, arg0) {
|
|
30025
30025
|
// Don't report another error if it would just be at the same position as the last error.
|
|
30026
30026
|
var lastError = ts.lastOrUndefined(parseDiagnostics);
|
|
30027
|
-
var result;
|
|
30028
30027
|
if (!lastError || start !== lastError.start) {
|
|
30029
|
-
|
|
30030
|
-
parseDiagnostics.push(result);
|
|
30028
|
+
parseDiagnostics.push(ts.createDetachedDiagnostic(fileName, start, length, message, arg0));
|
|
30031
30029
|
}
|
|
30032
30030
|
// Mark that we've encountered an error. We'll set an appropriate bit on the next
|
|
30033
30031
|
// node we finish so that it can't be reused incrementally.
|
|
30034
30032
|
parseErrorBeforeNextFinishedNode = true;
|
|
30035
|
-
return result;
|
|
30036
30033
|
}
|
|
30037
30034
|
function parseErrorAt(start, end, message, arg0) {
|
|
30038
|
-
|
|
30035
|
+
parseErrorAtPosition(start, end - start, message, arg0);
|
|
30039
30036
|
}
|
|
30040
30037
|
function parseErrorAtRange(range, message, arg0) {
|
|
30041
30038
|
parseErrorAt(range.pos, range.end, message, arg0);
|
|
@@ -30192,16 +30189,6 @@ var ts;
|
|
|
30192
30189
|
parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(kind));
|
|
30193
30190
|
return false;
|
|
30194
30191
|
}
|
|
30195
|
-
function parseExpectedMatchingBrackets(openKind, closeKind, openPosition) {
|
|
30196
|
-
if (token() === closeKind) {
|
|
30197
|
-
nextToken();
|
|
30198
|
-
return;
|
|
30199
|
-
}
|
|
30200
|
-
var lastError = parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(closeKind));
|
|
30201
|
-
if (lastError) {
|
|
30202
|
-
ts.addRelatedInfo(lastError, ts.createDetachedDiagnostic(fileName, openPosition, 1, ts.Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here, ts.tokenToString(openKind), ts.tokenToString(closeKind)));
|
|
30203
|
-
}
|
|
30204
|
-
}
|
|
30205
30192
|
function parseOptional(t) {
|
|
30206
30193
|
if (token() === t) {
|
|
30207
30194
|
nextToken();
|
|
@@ -33569,11 +33556,10 @@ var ts;
|
|
|
33569
33556
|
}
|
|
33570
33557
|
function parseArrayLiteralExpression() {
|
|
33571
33558
|
var pos = getNodePos();
|
|
33572
|
-
var openBracketPosition = scanner.getTokenPos();
|
|
33573
33559
|
parseExpected(22 /* OpenBracketToken */);
|
|
33574
33560
|
var multiLine = scanner.hasPrecedingLineBreak();
|
|
33575
33561
|
var elements = parseDelimitedList(15 /* ArrayLiteralMembers */, parseArgumentOrArrayLiteralElement);
|
|
33576
|
-
|
|
33562
|
+
parseExpected(23 /* CloseBracketToken */);
|
|
33577
33563
|
return finishNode(factory.createArrayLiteralExpression(elements, multiLine), pos);
|
|
33578
33564
|
}
|
|
33579
33565
|
function parseObjectLiteralElement() {
|
|
@@ -33633,7 +33619,12 @@ var ts;
|
|
|
33633
33619
|
parseExpected(18 /* OpenBraceToken */);
|
|
33634
33620
|
var multiLine = scanner.hasPrecedingLineBreak();
|
|
33635
33621
|
var properties = parseDelimitedList(12 /* ObjectLiteralMembers */, parseObjectLiteralElement, /*considerSemicolonAsDelimiter*/ true);
|
|
33636
|
-
|
|
33622
|
+
if (!parseExpected(19 /* CloseBraceToken */)) {
|
|
33623
|
+
var lastError = ts.lastOrUndefined(parseDiagnostics);
|
|
33624
|
+
if (lastError && lastError.code === ts.Diagnostics._0_expected.code) {
|
|
33625
|
+
ts.addRelatedInfo(lastError, ts.createDetachedDiagnostic(fileName, openBracePosition, 1, ts.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here));
|
|
33626
|
+
}
|
|
33627
|
+
}
|
|
33637
33628
|
return finishNode(factory.createObjectLiteralExpression(properties, multiLine), pos);
|
|
33638
33629
|
}
|
|
33639
33630
|
function parseFunctionExpression() {
|
|
@@ -33707,7 +33698,12 @@ var ts;
|
|
|
33707
33698
|
if (parseExpected(18 /* OpenBraceToken */, diagnosticMessage) || ignoreMissingOpenBrace) {
|
|
33708
33699
|
var multiLine = scanner.hasPrecedingLineBreak();
|
|
33709
33700
|
var statements = parseList(1 /* BlockStatements */, parseStatement);
|
|
33710
|
-
|
|
33701
|
+
if (!parseExpected(19 /* CloseBraceToken */)) {
|
|
33702
|
+
var lastError = ts.lastOrUndefined(parseDiagnostics);
|
|
33703
|
+
if (lastError && lastError.code === ts.Diagnostics._0_expected.code) {
|
|
33704
|
+
ts.addRelatedInfo(lastError, ts.createDetachedDiagnostic(fileName, openBracePosition, 1, ts.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here));
|
|
33705
|
+
}
|
|
33706
|
+
}
|
|
33711
33707
|
var result = withJSDoc(finishNode(factory.createBlock(statements, multiLine), pos), hasJSDoc);
|
|
33712
33708
|
if (token() === 62 /* EqualsToken */) {
|
|
33713
33709
|
parseErrorAtCurrentToken(ts.Diagnostics.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses);
|
|
@@ -33752,10 +33748,9 @@ var ts;
|
|
|
33752
33748
|
var pos = getNodePos();
|
|
33753
33749
|
var hasJSDoc = hasPrecedingJSDocComment();
|
|
33754
33750
|
parseExpected(98 /* IfKeyword */);
|
|
33755
|
-
var openParenPosition = scanner.getTokenPos();
|
|
33756
33751
|
parseExpected(20 /* OpenParenToken */);
|
|
33757
33752
|
var expression = allowInAnd(parseExpression);
|
|
33758
|
-
|
|
33753
|
+
parseExpected(21 /* CloseParenToken */);
|
|
33759
33754
|
var thenStatement = parseStatement();
|
|
33760
33755
|
var elseStatement = parseOptional(90 /* ElseKeyword */) ? parseStatement() : undefined;
|
|
33761
33756
|
return withJSDoc(finishNode(factory.createIfStatement(expression, thenStatement, elseStatement), pos), hasJSDoc);
|
|
@@ -33766,10 +33761,9 @@ var ts;
|
|
|
33766
33761
|
parseExpected(89 /* DoKeyword */);
|
|
33767
33762
|
var statement = parseStatement();
|
|
33768
33763
|
parseExpected(114 /* WhileKeyword */);
|
|
33769
|
-
var openParenPosition = scanner.getTokenPos();
|
|
33770
33764
|
parseExpected(20 /* OpenParenToken */);
|
|
33771
33765
|
var expression = allowInAnd(parseExpression);
|
|
33772
|
-
|
|
33766
|
+
parseExpected(21 /* CloseParenToken */);
|
|
33773
33767
|
// From: https://mail.mozilla.org/pipermail/es-discuss/2011-August/016188.html
|
|
33774
33768
|
// 157 min --- All allen at wirfs-brock.com CONF --- "do{;}while(false)false" prohibited in
|
|
33775
33769
|
// spec but allowed in consensus reality. Approved -- this is the de-facto standard whereby
|
|
@@ -33781,10 +33775,9 @@ var ts;
|
|
|
33781
33775
|
var pos = getNodePos();
|
|
33782
33776
|
var hasJSDoc = hasPrecedingJSDocComment();
|
|
33783
33777
|
parseExpected(114 /* WhileKeyword */);
|
|
33784
|
-
var openParenPosition = scanner.getTokenPos();
|
|
33785
33778
|
parseExpected(20 /* OpenParenToken */);
|
|
33786
33779
|
var expression = allowInAnd(parseExpression);
|
|
33787
|
-
|
|
33780
|
+
parseExpected(21 /* CloseParenToken */);
|
|
33788
33781
|
var statement = parseStatement();
|
|
33789
33782
|
return withJSDoc(finishNode(factory.createWhileStatement(expression, statement), pos), hasJSDoc);
|
|
33790
33783
|
}
|
|
@@ -33851,10 +33844,9 @@ var ts;
|
|
|
33851
33844
|
var pos = getNodePos();
|
|
33852
33845
|
var hasJSDoc = hasPrecedingJSDocComment();
|
|
33853
33846
|
parseExpected(115 /* WithKeyword */);
|
|
33854
|
-
var openParenPosition = scanner.getTokenPos();
|
|
33855
33847
|
parseExpected(20 /* OpenParenToken */);
|
|
33856
33848
|
var expression = allowInAnd(parseExpression);
|
|
33857
|
-
|
|
33849
|
+
parseExpected(21 /* CloseParenToken */);
|
|
33858
33850
|
var statement = doInsideOfContext(16777216 /* InWithStatement */, parseStatement);
|
|
33859
33851
|
return withJSDoc(finishNode(factory.createWithStatement(expression, statement), pos), hasJSDoc);
|
|
33860
33852
|
}
|
|
@@ -35845,7 +35837,8 @@ var ts;
|
|
|
35845
35837
|
hasChildren = true;
|
|
35846
35838
|
if (child.kind === 333 /* JSDocTypeTag */) {
|
|
35847
35839
|
if (childTypeTag) {
|
|
35848
|
-
|
|
35840
|
+
parseErrorAtCurrentToken(ts.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);
|
|
35841
|
+
var lastError = ts.lastOrUndefined(parseDiagnostics);
|
|
35849
35842
|
if (lastError) {
|
|
35850
35843
|
ts.addRelatedInfo(lastError, ts.createDetachedDiagnostic(fileName, 0, 0, ts.Diagnostics.The_tag_was_first_specified_here));
|
|
35851
35844
|
}
|
|
@@ -56006,6 +55999,10 @@ var ts;
|
|
|
56006
55999
|
var indexSymbol = symbol && getIndexSymbol(symbol);
|
|
56007
56000
|
return indexSymbol && getIndexDeclarationOfIndexSymbol(indexSymbol, kind);
|
|
56008
56001
|
}
|
|
56002
|
+
function getIndexDeclarationOfSymbolTable(symbolTable, kind) {
|
|
56003
|
+
var indexSymbol = symbolTable && getIndexSymbolFromSymbolTable(symbolTable);
|
|
56004
|
+
return indexSymbol && getIndexDeclarationOfIndexSymbol(indexSymbol, kind);
|
|
56005
|
+
}
|
|
56009
56006
|
function getIndexDeclarationOfIndexSymbol(indexSymbol, kind) {
|
|
56010
56007
|
var syntaxKind = kind === 1 /* Number */ ? 144 /* NumberKeyword */ : 147 /* StringKeyword */;
|
|
56011
56008
|
if (indexSymbol === null || indexSymbol === void 0 ? void 0 : indexSymbol.declarations) {
|
|
@@ -63214,14 +63211,17 @@ var ts;
|
|
|
63214
63211
|
return type.flags & 32768 /* Undefined */ ? type : getUnionType([type, undefinedType]);
|
|
63215
63212
|
}
|
|
63216
63213
|
function getGlobalNonNullableTypeInstantiation(type) {
|
|
63214
|
+
// First reduce away any constituents that are assignable to 'undefined' or 'null'. This not only eliminates
|
|
63215
|
+
// 'undefined' and 'null', but also higher-order types such as a type parameter 'U extends undefined | null'
|
|
63216
|
+
// that isn't eliminated by a NonNullable<T> instantiation.
|
|
63217
|
+
var reducedType = getTypeWithFacts(type, 2097152 /* NEUndefinedOrNull */);
|
|
63217
63218
|
if (!deferredGlobalNonNullableTypeAlias) {
|
|
63218
63219
|
deferredGlobalNonNullableTypeAlias = getGlobalSymbol("NonNullable", 524288 /* TypeAlias */, /*diagnostic*/ undefined) || unknownSymbol;
|
|
63219
63220
|
}
|
|
63220
|
-
//
|
|
63221
|
-
|
|
63222
|
-
|
|
63223
|
-
|
|
63224
|
-
return getTypeWithFacts(type, 2097152 /* NEUndefinedOrNull */); // Type alias unavailable, fall back to non-higher-order behavior
|
|
63221
|
+
// If the NonNullable<T> type is available, return an instantiation. Otherwise just return the reduced type.
|
|
63222
|
+
return deferredGlobalNonNullableTypeAlias !== unknownSymbol ?
|
|
63223
|
+
getTypeAliasInstantiation(deferredGlobalNonNullableTypeAlias, [reducedType]) :
|
|
63224
|
+
reducedType;
|
|
63225
63225
|
}
|
|
63226
63226
|
function getNonNullableType(type) {
|
|
63227
63227
|
return strictNullChecks ? getGlobalNonNullableTypeInstantiation(type) : type;
|
|
@@ -66809,7 +66809,7 @@ var ts;
|
|
|
66809
66809
|
!isGenericIndexType(getTypeOfExpression(parent.argumentExpression));
|
|
66810
66810
|
}
|
|
66811
66811
|
function isGenericTypeWithUnionConstraint(type) {
|
|
66812
|
-
return !!(type.flags & 465829888 /* Instantiable */ && getBaseConstraintOrType(type).flags & 1048576 /* Union */);
|
|
66812
|
+
return !!(type.flags & 465829888 /* Instantiable */ && getBaseConstraintOrType(type).flags & (98304 /* Nullable */ | 1048576 /* Union */));
|
|
66813
66813
|
}
|
|
66814
66814
|
function containsGenericType(type) {
|
|
66815
66815
|
return !!(type.flags & 465829888 /* Instantiable */ || type.flags & 3145728 /* UnionOrIntersection */ && ts.some(type.types, containsGenericType));
|
|
@@ -78283,21 +78283,24 @@ var ts;
|
|
|
78283
78283
|
checkBlock(node.finallyBlock);
|
|
78284
78284
|
}
|
|
78285
78285
|
}
|
|
78286
|
-
function checkIndexConstraints(type) {
|
|
78287
|
-
var
|
|
78288
|
-
var
|
|
78286
|
+
function checkIndexConstraints(type, isStatic) {
|
|
78287
|
+
var _a, _b, _c, _d;
|
|
78288
|
+
var declaredNumberIndexer = getIndexDeclarationOfSymbolTable(isStatic ? (_a = type.symbol) === null || _a === void 0 ? void 0 : _a.exports : (_b = type.symbol) === null || _b === void 0 ? void 0 : _b.members, 1 /* Number */);
|
|
78289
|
+
var declaredStringIndexer = getIndexDeclarationOfSymbolTable(isStatic ? (_c = type.symbol) === null || _c === void 0 ? void 0 : _c.exports : (_d = type.symbol) === null || _d === void 0 ? void 0 : _d.members, 0 /* String */);
|
|
78289
78290
|
var stringIndexType = getIndexTypeOfType(type, 0 /* String */);
|
|
78290
78291
|
var numberIndexType = getIndexTypeOfType(type, 1 /* Number */);
|
|
78291
78292
|
if (stringIndexType || numberIndexType) {
|
|
78292
78293
|
ts.forEach(getPropertiesOfObjectType(type), function (prop) {
|
|
78294
|
+
if (isStatic && prop.flags & 4194304 /* Prototype */)
|
|
78295
|
+
return;
|
|
78293
78296
|
var propType = getTypeOfSymbol(prop);
|
|
78294
78297
|
checkIndexConstraintForProperty(prop, propType, type, declaredStringIndexer, stringIndexType, 0 /* String */);
|
|
78295
78298
|
checkIndexConstraintForProperty(prop, propType, type, declaredNumberIndexer, numberIndexType, 1 /* Number */);
|
|
78296
78299
|
});
|
|
78297
78300
|
var classDeclaration = type.symbol.valueDeclaration;
|
|
78298
78301
|
if (ts.getObjectFlags(type) & 1 /* Class */ && classDeclaration && ts.isClassLike(classDeclaration)) {
|
|
78299
|
-
for (var _i = 0,
|
|
78300
|
-
var member =
|
|
78302
|
+
for (var _i = 0, _e = classDeclaration.members; _i < _e.length; _i++) {
|
|
78303
|
+
var member = _e[_i];
|
|
78301
78304
|
// Only process instance properties with computed names here.
|
|
78302
78305
|
// Static properties cannot be in conflict with indexers,
|
|
78303
78306
|
// and properties with literal names were already checked.
|
|
@@ -78627,7 +78630,7 @@ var ts;
|
|
|
78627
78630
|
}
|
|
78628
78631
|
if (produceDiagnostics) {
|
|
78629
78632
|
checkIndexConstraints(type);
|
|
78630
|
-
checkIndexConstraints(staticType);
|
|
78633
|
+
checkIndexConstraints(staticType, /*isStatic*/ true);
|
|
78631
78634
|
checkTypeForDuplicateIndexSignatures(node);
|
|
78632
78635
|
checkPropertyInitialization(node);
|
|
78633
78636
|
}
|
|
@@ -78678,7 +78681,7 @@ var ts;
|
|
|
78678
78681
|
}
|
|
78679
78682
|
if (!baseHasAbstract) {
|
|
78680
78683
|
var diag = memberIsParameterProperty ?
|
|
78681
|
-
ts.Diagnostics.
|
|
78684
|
+
ts.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0 :
|
|
78682
78685
|
ts.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;
|
|
78683
78686
|
error(member, diag, baseClassName);
|
|
78684
78687
|
}
|
|
@@ -88686,10 +88689,11 @@ var ts;
|
|
|
88686
88689
|
return ts.visitEachChild(node, visitor, context);
|
|
88687
88690
|
}
|
|
88688
88691
|
var staticProperties = ts.getProperties(node, /*requireInitializer*/ false, /*isStatic*/ true);
|
|
88692
|
+
var pendingPrivateStateAssignment;
|
|
88689
88693
|
if (shouldTransformPrivateElements && ts.some(node.members, function (m) { return ts.hasStaticModifier(m) && !!m.name && ts.isPrivateIdentifier(m.name); })) {
|
|
88690
88694
|
var temp = factory.createTempVariable(hoistVariableDeclaration, /* reservedInNestedScopes */ true);
|
|
88691
88695
|
getPrivateIdentifierEnvironment().classConstructor = factory.cloneNode(temp);
|
|
88692
|
-
|
|
88696
|
+
pendingPrivateStateAssignment = factory.createAssignment(temp, factory.getInternalName(node));
|
|
88693
88697
|
}
|
|
88694
88698
|
var extendsClauseElement = ts.getEffectiveBaseTypeNode(node);
|
|
88695
88699
|
var isDerivedClass = !!(extendsClauseElement && ts.skipOuterExpressions(extendsClauseElement.expression).kind !== 103 /* NullKeyword */);
|
|
@@ -88698,6 +88702,9 @@ var ts;
|
|
|
88698
88702
|
/*decorators*/ undefined, node.modifiers, node.name,
|
|
88699
88703
|
/*typeParameters*/ undefined, ts.visitNodes(node.heritageClauses, visitor, ts.isHeritageClause), transformClassMembers(node, isDerivedClass))
|
|
88700
88704
|
];
|
|
88705
|
+
if (pendingPrivateStateAssignment) {
|
|
88706
|
+
getPendingExpressions().unshift(pendingPrivateStateAssignment);
|
|
88707
|
+
}
|
|
88701
88708
|
// Write any pending expressions from elided or moved computed property names
|
|
88702
88709
|
if (ts.some(pendingExpressions)) {
|
|
88703
88710
|
statements.push(factory.createExpressionStatement(factory.inlineExpressions(pendingExpressions)));
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "typescript",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "4.3.
|
|
5
|
+
"version": "4.3.2",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -130,4 +130,4 @@
|
|
|
130
130
|
"volta": {
|
|
131
131
|
"node": "14.15.5"
|
|
132
132
|
}
|
|
133
|
-
}
|
|
133
|
+
}
|