@typescript-deploys/pr-build 4.6.0-pr-47550-2 → 4.6.0-pr-47552-4
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 +21 -23
- package/lib/tsserver.js +188 -58
- package/lib/tsserverlibrary.d.ts +7 -3
- package/lib/tsserverlibrary.js +188 -58
- package/lib/typescript.d.ts +7 -3
- package/lib/typescript.js +188 -58
- package/lib/typescriptServices.d.ts +7 -3
- package/lib/typescriptServices.js +188 -58
- package/lib/typingsInstaller.js +21 -31
- package/package.json +1 -1
package/lib/tsc.js
CHANGED
|
@@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
69
69
|
var ts;
|
|
70
70
|
(function (ts) {
|
|
71
71
|
ts.versionMajorMinor = "4.6";
|
|
72
|
-
ts.version = ts.versionMajorMinor + ".0-insiders.
|
|
72
|
+
ts.version = ts.versionMajorMinor + ".0-insiders.20220122";
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
function tryGetNativeMap() {
|
|
@@ -6681,6 +6681,8 @@ var ts;
|
|
|
6681
6681
|
Remove_unused_declarations_for_Colon_0: diag(90041, ts.DiagnosticCategory.Message, "Remove_unused_declarations_for_Colon_0_90041", "Remove unused declarations for: '{0}'"),
|
|
6682
6682
|
Declare_a_private_field_named_0: diag(90053, ts.DiagnosticCategory.Message, "Declare_a_private_field_named_0_90053", "Declare a private field named '{0}'."),
|
|
6683
6683
|
Includes_imports_of_types_referenced_by_0: diag(90054, ts.DiagnosticCategory.Message, "Includes_imports_of_types_referenced_by_0_90054", "Includes imports of types referenced by '{0}'"),
|
|
6684
|
+
Remove_type_from_import_declaration_from_0: diag(90055, ts.DiagnosticCategory.Message, "Remove_type_from_import_declaration_from_0_90055", "Remove 'type' from import declaration from \"{0}\""),
|
|
6685
|
+
Remove_type_from_import_of_0_from_1: diag(90056, ts.DiagnosticCategory.Message, "Remove_type_from_import_of_0_from_1_90056", "Remove 'type' from import of '{0}' from \"{1}\""),
|
|
6684
6686
|
Convert_function_to_an_ES2015_class: diag(95001, ts.DiagnosticCategory.Message, "Convert_function_to_an_ES2015_class_95001", "Convert function to an ES2015 class"),
|
|
6685
6687
|
Convert_0_to_1_in_0: diag(95003, ts.DiagnosticCategory.Message, "Convert_0_to_1_in_0_95003", "Convert '{0}' to '{1} in {0}'"),
|
|
6686
6688
|
Extract_to_0_in_1: diag(95004, ts.DiagnosticCategory.Message, "Extract_to_0_in_1_95004", "Extract to {0} in {1}"),
|
|
@@ -26926,18 +26928,18 @@ var ts;
|
|
|
26926
26928
|
function parseInitializer() {
|
|
26927
26929
|
return parseOptional(63) ? parseAssignmentExpressionOrHigher() : undefined;
|
|
26928
26930
|
}
|
|
26929
|
-
function parseAssignmentExpressionOrHigher(
|
|
26931
|
+
function parseAssignmentExpressionOrHigher() {
|
|
26930
26932
|
if (isYieldExpression()) {
|
|
26931
26933
|
return parseYieldExpression();
|
|
26932
26934
|
}
|
|
26933
|
-
var arrowExpression = tryParseParenthesizedArrowFunctionExpression(
|
|
26935
|
+
var arrowExpression = tryParseParenthesizedArrowFunctionExpression() || tryParseAsyncSimpleArrowFunctionExpression();
|
|
26934
26936
|
if (arrowExpression) {
|
|
26935
26937
|
return arrowExpression;
|
|
26936
26938
|
}
|
|
26937
26939
|
var pos = getNodePos();
|
|
26938
26940
|
var expr = parseBinaryExpressionOrHigher(0);
|
|
26939
26941
|
if (expr.kind === 79 && token() === 38) {
|
|
26940
|
-
return parseSimpleArrowFunctionExpression(pos, expr, undefined
|
|
26942
|
+
return parseSimpleArrowFunctionExpression(pos, expr, undefined);
|
|
26941
26943
|
}
|
|
26942
26944
|
if (ts.isLeftHandSideExpression(expr) && ts.isAssignmentOperator(reScanGreaterToken())) {
|
|
26943
26945
|
return makeBinaryExpression(expr, parseTokenNode(), parseAssignmentExpressionOrHigher(), pos);
|
|
@@ -26968,24 +26970,24 @@ var ts;
|
|
|
26968
26970
|
return finishNode(factory.createYieldExpression(undefined, undefined), pos);
|
|
26969
26971
|
}
|
|
26970
26972
|
}
|
|
26971
|
-
function parseSimpleArrowFunctionExpression(pos, identifier, asyncModifier
|
|
26973
|
+
function parseSimpleArrowFunctionExpression(pos, identifier, asyncModifier) {
|
|
26972
26974
|
ts.Debug.assert(token() === 38, "parseSimpleArrowFunctionExpression should only have been called if we had a =>");
|
|
26973
26975
|
var parameter = factory.createParameterDeclaration(undefined, undefined, undefined, identifier, undefined, undefined, undefined);
|
|
26974
26976
|
finishNode(parameter, identifier.pos);
|
|
26975
26977
|
var parameters = createNodeArray([parameter], parameter.pos, parameter.end);
|
|
26976
26978
|
var equalsGreaterThanToken = parseExpectedToken(38);
|
|
26977
|
-
var body = parseArrowFunctionExpressionBody(!!asyncModifier
|
|
26979
|
+
var body = parseArrowFunctionExpressionBody(!!asyncModifier);
|
|
26978
26980
|
var node = factory.createArrowFunction(asyncModifier, undefined, parameters, undefined, equalsGreaterThanToken, body);
|
|
26979
26981
|
return addJSDocComment(finishNode(node, pos));
|
|
26980
26982
|
}
|
|
26981
|
-
function tryParseParenthesizedArrowFunctionExpression(
|
|
26983
|
+
function tryParseParenthesizedArrowFunctionExpression() {
|
|
26982
26984
|
var triState = isParenthesizedArrowFunctionExpression();
|
|
26983
26985
|
if (triState === 0) {
|
|
26984
26986
|
return undefined;
|
|
26985
26987
|
}
|
|
26986
26988
|
return triState === 1 ?
|
|
26987
|
-
parseParenthesizedArrowFunctionExpression(true
|
|
26988
|
-
tryParse(
|
|
26989
|
+
parseParenthesizedArrowFunctionExpression(true) :
|
|
26990
|
+
tryParse(parsePossibleParenthesizedArrowFunctionExpression);
|
|
26989
26991
|
}
|
|
26990
26992
|
function isParenthesizedArrowFunctionExpression() {
|
|
26991
26993
|
if (token() === 20 || token() === 29 || token() === 131) {
|
|
@@ -27079,24 +27081,24 @@ var ts;
|
|
|
27079
27081
|
return 2;
|
|
27080
27082
|
}
|
|
27081
27083
|
}
|
|
27082
|
-
function parsePossibleParenthesizedArrowFunctionExpression(
|
|
27084
|
+
function parsePossibleParenthesizedArrowFunctionExpression() {
|
|
27083
27085
|
var tokenPos = scanner.getTokenPos();
|
|
27084
27086
|
if (notParenthesizedArrow === null || notParenthesizedArrow === void 0 ? void 0 : notParenthesizedArrow.has(tokenPos)) {
|
|
27085
27087
|
return undefined;
|
|
27086
27088
|
}
|
|
27087
|
-
var result = parseParenthesizedArrowFunctionExpression(false
|
|
27089
|
+
var result = parseParenthesizedArrowFunctionExpression(false);
|
|
27088
27090
|
if (!result) {
|
|
27089
27091
|
(notParenthesizedArrow || (notParenthesizedArrow = new ts.Set())).add(tokenPos);
|
|
27090
27092
|
}
|
|
27091
27093
|
return result;
|
|
27092
27094
|
}
|
|
27093
|
-
function tryParseAsyncSimpleArrowFunctionExpression(
|
|
27095
|
+
function tryParseAsyncSimpleArrowFunctionExpression() {
|
|
27094
27096
|
if (token() === 131) {
|
|
27095
27097
|
if (lookAhead(isUnParenthesizedAsyncArrowFunctionWorker) === 1) {
|
|
27096
27098
|
var pos = getNodePos();
|
|
27097
27099
|
var asyncModifier = parseModifiersForArrowFunction();
|
|
27098
27100
|
var expr = parseBinaryExpressionOrHigher(0);
|
|
27099
|
-
return parseSimpleArrowFunctionExpression(pos, expr, asyncModifier
|
|
27101
|
+
return parseSimpleArrowFunctionExpression(pos, expr, asyncModifier);
|
|
27100
27102
|
}
|
|
27101
27103
|
}
|
|
27102
27104
|
return undefined;
|
|
@@ -27114,7 +27116,7 @@ var ts;
|
|
|
27114
27116
|
}
|
|
27115
27117
|
return 0;
|
|
27116
27118
|
}
|
|
27117
|
-
function parseParenthesizedArrowFunctionExpression(allowAmbiguity
|
|
27119
|
+
function parseParenthesizedArrowFunctionExpression(allowAmbiguity) {
|
|
27118
27120
|
var pos = getNodePos();
|
|
27119
27121
|
var hasJSDoc = hasPrecedingJSDocComment();
|
|
27120
27122
|
var modifiers = parseModifiersForArrowFunction();
|
|
@@ -27133,10 +27135,6 @@ var ts;
|
|
|
27133
27135
|
return undefined;
|
|
27134
27136
|
}
|
|
27135
27137
|
}
|
|
27136
|
-
if (parsingConditionalTrueSide && token() === 58) {
|
|
27137
|
-
ts.Debug.assert(!allowAmbiguity);
|
|
27138
|
-
return undefined;
|
|
27139
|
-
}
|
|
27140
27138
|
var type = parseReturnType(58, false);
|
|
27141
27139
|
if (type && !allowAmbiguity && typeHasArrowFunctionBlockingParseError(type)) {
|
|
27142
27140
|
return undefined;
|
|
@@ -27157,7 +27155,7 @@ var ts;
|
|
|
27157
27155
|
var node = factory.createArrowFunction(modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body);
|
|
27158
27156
|
return withJSDoc(finishNode(node, pos), hasJSDoc);
|
|
27159
27157
|
}
|
|
27160
|
-
function parseArrowFunctionExpressionBody(isAsync
|
|
27158
|
+
function parseArrowFunctionExpressionBody(isAsync) {
|
|
27161
27159
|
if (token() === 18) {
|
|
27162
27160
|
return parseFunctionBlock(isAsync ? 2 : 0);
|
|
27163
27161
|
}
|
|
@@ -27171,8 +27169,8 @@ var ts;
|
|
|
27171
27169
|
var savedTopLevel = topLevel;
|
|
27172
27170
|
topLevel = false;
|
|
27173
27171
|
var node = isAsync
|
|
27174
|
-
? doInAwaitContext(
|
|
27175
|
-
: doOutsideOfAwaitContext(
|
|
27172
|
+
? doInAwaitContext(parseAssignmentExpressionOrHigher)
|
|
27173
|
+
: doOutsideOfAwaitContext(parseAssignmentExpressionOrHigher);
|
|
27176
27174
|
topLevel = savedTopLevel;
|
|
27177
27175
|
return node;
|
|
27178
27176
|
}
|
|
@@ -27182,8 +27180,8 @@ var ts;
|
|
|
27182
27180
|
return leftOperand;
|
|
27183
27181
|
}
|
|
27184
27182
|
var colonToken;
|
|
27185
|
-
return finishNode(factory.createConditionalExpression(leftOperand, questionToken, doOutsideOfContext(disallowInAndDecoratorContext,
|
|
27186
|
-
? parseAssignmentExpressionOrHigher(
|
|
27183
|
+
return finishNode(factory.createConditionalExpression(leftOperand, questionToken, doOutsideOfContext(disallowInAndDecoratorContext, parseAssignmentExpressionOrHigher), colonToken = parseExpectedToken(58), ts.nodeIsPresent(colonToken)
|
|
27184
|
+
? parseAssignmentExpressionOrHigher()
|
|
27187
27185
|
: createMissingNode(79, false, ts.Diagnostics._0_expected, ts.tokenToString(58))), pos);
|
|
27188
27186
|
}
|
|
27189
27187
|
function parseBinaryExpressionOrHigher(precedence) {
|