typescript 4.7.0-dev.20220223 → 4.7.0-dev.20220224
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 +23 -3
- package/lib/tsserver.js +25 -3
- package/lib/tsserverlibrary.js +25 -3
- package/lib/typescript.js +25 -3
- package/lib/typescriptServices.js +25 -3
- package/lib/typingsInstaller.js +25 -3
- 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.7";
|
|
72
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
72
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220224";
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
var globals = typeof globalThis !== "undefined" ? globalThis :
|
|
@@ -21878,6 +21878,17 @@ var ts;
|
|
|
21878
21878
|
return node;
|
|
21879
21879
|
}
|
|
21880
21880
|
ts.ignoreSourceNewlines = ignoreSourceNewlines;
|
|
21881
|
+
function setTypeNode(node, type) {
|
|
21882
|
+
var emitNode = getOrCreateEmitNode(node);
|
|
21883
|
+
emitNode.typeNode = type;
|
|
21884
|
+
return node;
|
|
21885
|
+
}
|
|
21886
|
+
ts.setTypeNode = setTypeNode;
|
|
21887
|
+
function getTypeNode(node) {
|
|
21888
|
+
var _a;
|
|
21889
|
+
return (_a = node.emitNode) === null || _a === void 0 ? void 0 : _a.typeNode;
|
|
21890
|
+
}
|
|
21891
|
+
ts.getTypeNode = getTypeNode;
|
|
21881
21892
|
})(ts || (ts = {}));
|
|
21882
21893
|
var ts;
|
|
21883
21894
|
(function (ts) {
|
|
@@ -76721,7 +76732,11 @@ var ts;
|
|
|
76721
76732
|
}
|
|
76722
76733
|
}
|
|
76723
76734
|
function visitVariableDeclaration(node) {
|
|
76724
|
-
|
|
76735
|
+
var updated = factory.updateVariableDeclaration(node, ts.visitNode(node.name, visitor, ts.isBindingName), undefined, undefined, ts.visitNode(node.initializer, visitor, ts.isExpression));
|
|
76736
|
+
if (node.type) {
|
|
76737
|
+
ts.setTypeNode(updated.name, node.type);
|
|
76738
|
+
}
|
|
76739
|
+
return updated;
|
|
76725
76740
|
}
|
|
76726
76741
|
function visitParenthesizedExpression(node) {
|
|
76727
76742
|
var innerExpression = ts.skipOuterExpressions(node.expression, ~6);
|
|
@@ -91258,10 +91273,11 @@ var ts;
|
|
|
91258
91273
|
writeTrailingSemicolon();
|
|
91259
91274
|
}
|
|
91260
91275
|
function emitVariableDeclaration(node) {
|
|
91276
|
+
var _a, _b, _c, _d, _e;
|
|
91261
91277
|
emit(node.name);
|
|
91262
91278
|
emit(node.exclamationToken);
|
|
91263
91279
|
emitTypeAnnotation(node.type);
|
|
91264
|
-
emitInitializer(node.initializer, node.type ? node.
|
|
91280
|
+
emitInitializer(node.initializer, (_e = (_b = (_a = node.type) === null || _a === void 0 ? void 0 : _a.end) !== null && _b !== void 0 ? _b : (_d = (_c = node.name.emitNode) === null || _c === void 0 ? void 0 : _c.typeNode) === null || _d === void 0 ? void 0 : _d.end) !== null && _e !== void 0 ? _e : node.name.end, node, parenthesizer.parenthesizeExpressionForDisallowedComma);
|
|
91265
91281
|
}
|
|
91266
91282
|
function emitVariableDeclarationList(node) {
|
|
91267
91283
|
writeKeyword(ts.isLet(node) ? "let" : ts.isVarConst(node) ? "const" : "var");
|
|
@@ -93056,6 +93072,10 @@ var ts;
|
|
|
93056
93072
|
commentsDisabled = false;
|
|
93057
93073
|
}
|
|
93058
93074
|
emitTrailingCommentsOfNode(node, emitFlags, commentRange.pos, commentRange.end, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd);
|
|
93075
|
+
var typeNode = ts.getTypeNode(node);
|
|
93076
|
+
if (typeNode) {
|
|
93077
|
+
emitTrailingCommentsOfNode(node, emitFlags, typeNode.pos, typeNode.end, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd);
|
|
93078
|
+
}
|
|
93059
93079
|
}
|
|
93060
93080
|
function emitLeadingCommentsOfNode(node, emitFlags, pos, end) {
|
|
93061
93081
|
enterComment();
|
package/lib/tsserver.js
CHANGED
|
@@ -100,7 +100,7 @@ var ts;
|
|
|
100
100
|
// The following is baselined as a literal template type without intervention
|
|
101
101
|
/** The version of the TypeScript compiler release */
|
|
102
102
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
103
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
103
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220224";
|
|
104
104
|
/* @internal */
|
|
105
105
|
var Comparison;
|
|
106
106
|
(function (Comparison) {
|
|
@@ -27190,6 +27190,19 @@ var ts;
|
|
|
27190
27190
|
return node;
|
|
27191
27191
|
}
|
|
27192
27192
|
ts.ignoreSourceNewlines = ignoreSourceNewlines;
|
|
27193
|
+
/* @internal */
|
|
27194
|
+
function setTypeNode(node, type) {
|
|
27195
|
+
var emitNode = getOrCreateEmitNode(node);
|
|
27196
|
+
emitNode.typeNode = type;
|
|
27197
|
+
return node;
|
|
27198
|
+
}
|
|
27199
|
+
ts.setTypeNode = setTypeNode;
|
|
27200
|
+
/* @internal */
|
|
27201
|
+
function getTypeNode(node) {
|
|
27202
|
+
var _a;
|
|
27203
|
+
return (_a = node.emitNode) === null || _a === void 0 ? void 0 : _a.typeNode;
|
|
27204
|
+
}
|
|
27205
|
+
ts.getTypeNode = getTypeNode;
|
|
27193
27206
|
})(ts || (ts = {}));
|
|
27194
27207
|
/* @internal */
|
|
27195
27208
|
var ts;
|
|
@@ -91620,9 +91633,13 @@ var ts;
|
|
|
91620
91633
|
}
|
|
91621
91634
|
}
|
|
91622
91635
|
function visitVariableDeclaration(node) {
|
|
91623
|
-
|
|
91636
|
+
var updated = factory.updateVariableDeclaration(node, ts.visitNode(node.name, visitor, ts.isBindingName),
|
|
91624
91637
|
/*exclamationToken*/ undefined,
|
|
91625
91638
|
/*type*/ undefined, ts.visitNode(node.initializer, visitor, ts.isExpression));
|
|
91639
|
+
if (node.type) {
|
|
91640
|
+
ts.setTypeNode(updated.name, node.type);
|
|
91641
|
+
}
|
|
91642
|
+
return updated;
|
|
91626
91643
|
}
|
|
91627
91644
|
function visitParenthesizedExpression(node) {
|
|
91628
91645
|
var innerExpression = ts.skipOuterExpressions(node.expression, ~6 /* Assertions */);
|
|
@@ -110954,10 +110971,11 @@ var ts;
|
|
|
110954
110971
|
// Declarations
|
|
110955
110972
|
//
|
|
110956
110973
|
function emitVariableDeclaration(node) {
|
|
110974
|
+
var _a, _b, _c, _d, _e;
|
|
110957
110975
|
emit(node.name);
|
|
110958
110976
|
emit(node.exclamationToken);
|
|
110959
110977
|
emitTypeAnnotation(node.type);
|
|
110960
|
-
emitInitializer(node.initializer, node.type ? node.
|
|
110978
|
+
emitInitializer(node.initializer, (_e = (_b = (_a = node.type) === null || _a === void 0 ? void 0 : _a.end) !== null && _b !== void 0 ? _b : (_d = (_c = node.name.emitNode) === null || _c === void 0 ? void 0 : _c.typeNode) === null || _d === void 0 ? void 0 : _d.end) !== null && _e !== void 0 ? _e : node.name.end, node, parenthesizer.parenthesizeExpressionForDisallowedComma);
|
|
110961
110979
|
}
|
|
110962
110980
|
function emitVariableDeclarationList(node) {
|
|
110963
110981
|
writeKeyword(ts.isLet(node) ? "let" : ts.isVarConst(node) ? "const" : "var");
|
|
@@ -112939,6 +112957,10 @@ var ts;
|
|
|
112939
112957
|
commentsDisabled = false;
|
|
112940
112958
|
}
|
|
112941
112959
|
emitTrailingCommentsOfNode(node, emitFlags, commentRange.pos, commentRange.end, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd);
|
|
112960
|
+
var typeNode = ts.getTypeNode(node);
|
|
112961
|
+
if (typeNode) {
|
|
112962
|
+
emitTrailingCommentsOfNode(node, emitFlags, typeNode.pos, typeNode.end, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd);
|
|
112963
|
+
}
|
|
112942
112964
|
}
|
|
112943
112965
|
function emitLeadingCommentsOfNode(node, emitFlags, pos, end) {
|
|
112944
112966
|
enterComment();
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
297
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220224";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -27384,6 +27384,19 @@ var ts;
|
|
|
27384
27384
|
return node;
|
|
27385
27385
|
}
|
|
27386
27386
|
ts.ignoreSourceNewlines = ignoreSourceNewlines;
|
|
27387
|
+
/* @internal */
|
|
27388
|
+
function setTypeNode(node, type) {
|
|
27389
|
+
var emitNode = getOrCreateEmitNode(node);
|
|
27390
|
+
emitNode.typeNode = type;
|
|
27391
|
+
return node;
|
|
27392
|
+
}
|
|
27393
|
+
ts.setTypeNode = setTypeNode;
|
|
27394
|
+
/* @internal */
|
|
27395
|
+
function getTypeNode(node) {
|
|
27396
|
+
var _a;
|
|
27397
|
+
return (_a = node.emitNode) === null || _a === void 0 ? void 0 : _a.typeNode;
|
|
27398
|
+
}
|
|
27399
|
+
ts.getTypeNode = getTypeNode;
|
|
27387
27400
|
})(ts || (ts = {}));
|
|
27388
27401
|
/* @internal */
|
|
27389
27402
|
var ts;
|
|
@@ -91814,9 +91827,13 @@ var ts;
|
|
|
91814
91827
|
}
|
|
91815
91828
|
}
|
|
91816
91829
|
function visitVariableDeclaration(node) {
|
|
91817
|
-
|
|
91830
|
+
var updated = factory.updateVariableDeclaration(node, ts.visitNode(node.name, visitor, ts.isBindingName),
|
|
91818
91831
|
/*exclamationToken*/ undefined,
|
|
91819
91832
|
/*type*/ undefined, ts.visitNode(node.initializer, visitor, ts.isExpression));
|
|
91833
|
+
if (node.type) {
|
|
91834
|
+
ts.setTypeNode(updated.name, node.type);
|
|
91835
|
+
}
|
|
91836
|
+
return updated;
|
|
91820
91837
|
}
|
|
91821
91838
|
function visitParenthesizedExpression(node) {
|
|
91822
91839
|
var innerExpression = ts.skipOuterExpressions(node.expression, ~6 /* Assertions */);
|
|
@@ -111148,10 +111165,11 @@ var ts;
|
|
|
111148
111165
|
// Declarations
|
|
111149
111166
|
//
|
|
111150
111167
|
function emitVariableDeclaration(node) {
|
|
111168
|
+
var _a, _b, _c, _d, _e;
|
|
111151
111169
|
emit(node.name);
|
|
111152
111170
|
emit(node.exclamationToken);
|
|
111153
111171
|
emitTypeAnnotation(node.type);
|
|
111154
|
-
emitInitializer(node.initializer, node.type ? node.
|
|
111172
|
+
emitInitializer(node.initializer, (_e = (_b = (_a = node.type) === null || _a === void 0 ? void 0 : _a.end) !== null && _b !== void 0 ? _b : (_d = (_c = node.name.emitNode) === null || _c === void 0 ? void 0 : _c.typeNode) === null || _d === void 0 ? void 0 : _d.end) !== null && _e !== void 0 ? _e : node.name.end, node, parenthesizer.parenthesizeExpressionForDisallowedComma);
|
|
111155
111173
|
}
|
|
111156
111174
|
function emitVariableDeclarationList(node) {
|
|
111157
111175
|
writeKeyword(ts.isLet(node) ? "let" : ts.isVarConst(node) ? "const" : "var");
|
|
@@ -113133,6 +113151,10 @@ var ts;
|
|
|
113133
113151
|
commentsDisabled = false;
|
|
113134
113152
|
}
|
|
113135
113153
|
emitTrailingCommentsOfNode(node, emitFlags, commentRange.pos, commentRange.end, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd);
|
|
113154
|
+
var typeNode = ts.getTypeNode(node);
|
|
113155
|
+
if (typeNode) {
|
|
113156
|
+
emitTrailingCommentsOfNode(node, emitFlags, typeNode.pos, typeNode.end, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd);
|
|
113157
|
+
}
|
|
113136
113158
|
}
|
|
113137
113159
|
function emitLeadingCommentsOfNode(node, emitFlags, pos, end) {
|
|
113138
113160
|
enterComment();
|
package/lib/typescript.js
CHANGED
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
297
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220224";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -27384,6 +27384,19 @@ var ts;
|
|
|
27384
27384
|
return node;
|
|
27385
27385
|
}
|
|
27386
27386
|
ts.ignoreSourceNewlines = ignoreSourceNewlines;
|
|
27387
|
+
/* @internal */
|
|
27388
|
+
function setTypeNode(node, type) {
|
|
27389
|
+
var emitNode = getOrCreateEmitNode(node);
|
|
27390
|
+
emitNode.typeNode = type;
|
|
27391
|
+
return node;
|
|
27392
|
+
}
|
|
27393
|
+
ts.setTypeNode = setTypeNode;
|
|
27394
|
+
/* @internal */
|
|
27395
|
+
function getTypeNode(node) {
|
|
27396
|
+
var _a;
|
|
27397
|
+
return (_a = node.emitNode) === null || _a === void 0 ? void 0 : _a.typeNode;
|
|
27398
|
+
}
|
|
27399
|
+
ts.getTypeNode = getTypeNode;
|
|
27387
27400
|
})(ts || (ts = {}));
|
|
27388
27401
|
/* @internal */
|
|
27389
27402
|
var ts;
|
|
@@ -91814,9 +91827,13 @@ var ts;
|
|
|
91814
91827
|
}
|
|
91815
91828
|
}
|
|
91816
91829
|
function visitVariableDeclaration(node) {
|
|
91817
|
-
|
|
91830
|
+
var updated = factory.updateVariableDeclaration(node, ts.visitNode(node.name, visitor, ts.isBindingName),
|
|
91818
91831
|
/*exclamationToken*/ undefined,
|
|
91819
91832
|
/*type*/ undefined, ts.visitNode(node.initializer, visitor, ts.isExpression));
|
|
91833
|
+
if (node.type) {
|
|
91834
|
+
ts.setTypeNode(updated.name, node.type);
|
|
91835
|
+
}
|
|
91836
|
+
return updated;
|
|
91820
91837
|
}
|
|
91821
91838
|
function visitParenthesizedExpression(node) {
|
|
91822
91839
|
var innerExpression = ts.skipOuterExpressions(node.expression, ~6 /* Assertions */);
|
|
@@ -111148,10 +111165,11 @@ var ts;
|
|
|
111148
111165
|
// Declarations
|
|
111149
111166
|
//
|
|
111150
111167
|
function emitVariableDeclaration(node) {
|
|
111168
|
+
var _a, _b, _c, _d, _e;
|
|
111151
111169
|
emit(node.name);
|
|
111152
111170
|
emit(node.exclamationToken);
|
|
111153
111171
|
emitTypeAnnotation(node.type);
|
|
111154
|
-
emitInitializer(node.initializer, node.type ? node.
|
|
111172
|
+
emitInitializer(node.initializer, (_e = (_b = (_a = node.type) === null || _a === void 0 ? void 0 : _a.end) !== null && _b !== void 0 ? _b : (_d = (_c = node.name.emitNode) === null || _c === void 0 ? void 0 : _c.typeNode) === null || _d === void 0 ? void 0 : _d.end) !== null && _e !== void 0 ? _e : node.name.end, node, parenthesizer.parenthesizeExpressionForDisallowedComma);
|
|
111155
111173
|
}
|
|
111156
111174
|
function emitVariableDeclarationList(node) {
|
|
111157
111175
|
writeKeyword(ts.isLet(node) ? "let" : ts.isVarConst(node) ? "const" : "var");
|
|
@@ -113133,6 +113151,10 @@ var ts;
|
|
|
113133
113151
|
commentsDisabled = false;
|
|
113134
113152
|
}
|
|
113135
113153
|
emitTrailingCommentsOfNode(node, emitFlags, commentRange.pos, commentRange.end, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd);
|
|
113154
|
+
var typeNode = ts.getTypeNode(node);
|
|
113155
|
+
if (typeNode) {
|
|
113156
|
+
emitTrailingCommentsOfNode(node, emitFlags, typeNode.pos, typeNode.end, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd);
|
|
113157
|
+
}
|
|
113136
113158
|
}
|
|
113137
113159
|
function emitLeadingCommentsOfNode(node, emitFlags, pos, end) {
|
|
113138
113160
|
enterComment();
|
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
297
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220224";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -27384,6 +27384,19 @@ var ts;
|
|
|
27384
27384
|
return node;
|
|
27385
27385
|
}
|
|
27386
27386
|
ts.ignoreSourceNewlines = ignoreSourceNewlines;
|
|
27387
|
+
/* @internal */
|
|
27388
|
+
function setTypeNode(node, type) {
|
|
27389
|
+
var emitNode = getOrCreateEmitNode(node);
|
|
27390
|
+
emitNode.typeNode = type;
|
|
27391
|
+
return node;
|
|
27392
|
+
}
|
|
27393
|
+
ts.setTypeNode = setTypeNode;
|
|
27394
|
+
/* @internal */
|
|
27395
|
+
function getTypeNode(node) {
|
|
27396
|
+
var _a;
|
|
27397
|
+
return (_a = node.emitNode) === null || _a === void 0 ? void 0 : _a.typeNode;
|
|
27398
|
+
}
|
|
27399
|
+
ts.getTypeNode = getTypeNode;
|
|
27387
27400
|
})(ts || (ts = {}));
|
|
27388
27401
|
/* @internal */
|
|
27389
27402
|
var ts;
|
|
@@ -91814,9 +91827,13 @@ var ts;
|
|
|
91814
91827
|
}
|
|
91815
91828
|
}
|
|
91816
91829
|
function visitVariableDeclaration(node) {
|
|
91817
|
-
|
|
91830
|
+
var updated = factory.updateVariableDeclaration(node, ts.visitNode(node.name, visitor, ts.isBindingName),
|
|
91818
91831
|
/*exclamationToken*/ undefined,
|
|
91819
91832
|
/*type*/ undefined, ts.visitNode(node.initializer, visitor, ts.isExpression));
|
|
91833
|
+
if (node.type) {
|
|
91834
|
+
ts.setTypeNode(updated.name, node.type);
|
|
91835
|
+
}
|
|
91836
|
+
return updated;
|
|
91820
91837
|
}
|
|
91821
91838
|
function visitParenthesizedExpression(node) {
|
|
91822
91839
|
var innerExpression = ts.skipOuterExpressions(node.expression, ~6 /* Assertions */);
|
|
@@ -111148,10 +111165,11 @@ var ts;
|
|
|
111148
111165
|
// Declarations
|
|
111149
111166
|
//
|
|
111150
111167
|
function emitVariableDeclaration(node) {
|
|
111168
|
+
var _a, _b, _c, _d, _e;
|
|
111151
111169
|
emit(node.name);
|
|
111152
111170
|
emit(node.exclamationToken);
|
|
111153
111171
|
emitTypeAnnotation(node.type);
|
|
111154
|
-
emitInitializer(node.initializer, node.type ? node.
|
|
111172
|
+
emitInitializer(node.initializer, (_e = (_b = (_a = node.type) === null || _a === void 0 ? void 0 : _a.end) !== null && _b !== void 0 ? _b : (_d = (_c = node.name.emitNode) === null || _c === void 0 ? void 0 : _c.typeNode) === null || _d === void 0 ? void 0 : _d.end) !== null && _e !== void 0 ? _e : node.name.end, node, parenthesizer.parenthesizeExpressionForDisallowedComma);
|
|
111155
111173
|
}
|
|
111156
111174
|
function emitVariableDeclarationList(node) {
|
|
111157
111175
|
writeKeyword(ts.isLet(node) ? "let" : ts.isVarConst(node) ? "const" : "var");
|
|
@@ -113133,6 +113151,10 @@ var ts;
|
|
|
113133
113151
|
commentsDisabled = false;
|
|
113134
113152
|
}
|
|
113135
113153
|
emitTrailingCommentsOfNode(node, emitFlags, commentRange.pos, commentRange.end, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd);
|
|
113154
|
+
var typeNode = ts.getTypeNode(node);
|
|
113155
|
+
if (typeNode) {
|
|
113156
|
+
emitTrailingCommentsOfNode(node, emitFlags, typeNode.pos, typeNode.end, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd);
|
|
113157
|
+
}
|
|
113136
113158
|
}
|
|
113137
113159
|
function emitLeadingCommentsOfNode(node, emitFlags, pos, end) {
|
|
113138
113160
|
enterComment();
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -89,7 +89,7 @@ var ts;
|
|
|
89
89
|
// The following is baselined as a literal template type without intervention
|
|
90
90
|
/** The version of the TypeScript compiler release */
|
|
91
91
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
92
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
92
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220224";
|
|
93
93
|
/* @internal */
|
|
94
94
|
var Comparison;
|
|
95
95
|
(function (Comparison) {
|
|
@@ -27179,6 +27179,19 @@ var ts;
|
|
|
27179
27179
|
return node;
|
|
27180
27180
|
}
|
|
27181
27181
|
ts.ignoreSourceNewlines = ignoreSourceNewlines;
|
|
27182
|
+
/* @internal */
|
|
27183
|
+
function setTypeNode(node, type) {
|
|
27184
|
+
var emitNode = getOrCreateEmitNode(node);
|
|
27185
|
+
emitNode.typeNode = type;
|
|
27186
|
+
return node;
|
|
27187
|
+
}
|
|
27188
|
+
ts.setTypeNode = setTypeNode;
|
|
27189
|
+
/* @internal */
|
|
27190
|
+
function getTypeNode(node) {
|
|
27191
|
+
var _a;
|
|
27192
|
+
return (_a = node.emitNode) === null || _a === void 0 ? void 0 : _a.typeNode;
|
|
27193
|
+
}
|
|
27194
|
+
ts.getTypeNode = getTypeNode;
|
|
27182
27195
|
})(ts || (ts = {}));
|
|
27183
27196
|
/* @internal */
|
|
27184
27197
|
var ts;
|
|
@@ -91609,9 +91622,13 @@ var ts;
|
|
|
91609
91622
|
}
|
|
91610
91623
|
}
|
|
91611
91624
|
function visitVariableDeclaration(node) {
|
|
91612
|
-
|
|
91625
|
+
var updated = factory.updateVariableDeclaration(node, ts.visitNode(node.name, visitor, ts.isBindingName),
|
|
91613
91626
|
/*exclamationToken*/ undefined,
|
|
91614
91627
|
/*type*/ undefined, ts.visitNode(node.initializer, visitor, ts.isExpression));
|
|
91628
|
+
if (node.type) {
|
|
91629
|
+
ts.setTypeNode(updated.name, node.type);
|
|
91630
|
+
}
|
|
91631
|
+
return updated;
|
|
91615
91632
|
}
|
|
91616
91633
|
function visitParenthesizedExpression(node) {
|
|
91617
91634
|
var innerExpression = ts.skipOuterExpressions(node.expression, ~6 /* Assertions */);
|
|
@@ -110943,10 +110960,11 @@ var ts;
|
|
|
110943
110960
|
// Declarations
|
|
110944
110961
|
//
|
|
110945
110962
|
function emitVariableDeclaration(node) {
|
|
110963
|
+
var _a, _b, _c, _d, _e;
|
|
110946
110964
|
emit(node.name);
|
|
110947
110965
|
emit(node.exclamationToken);
|
|
110948
110966
|
emitTypeAnnotation(node.type);
|
|
110949
|
-
emitInitializer(node.initializer, node.type ? node.
|
|
110967
|
+
emitInitializer(node.initializer, (_e = (_b = (_a = node.type) === null || _a === void 0 ? void 0 : _a.end) !== null && _b !== void 0 ? _b : (_d = (_c = node.name.emitNode) === null || _c === void 0 ? void 0 : _c.typeNode) === null || _d === void 0 ? void 0 : _d.end) !== null && _e !== void 0 ? _e : node.name.end, node, parenthesizer.parenthesizeExpressionForDisallowedComma);
|
|
110950
110968
|
}
|
|
110951
110969
|
function emitVariableDeclarationList(node) {
|
|
110952
110970
|
writeKeyword(ts.isLet(node) ? "let" : ts.isVarConst(node) ? "const" : "var");
|
|
@@ -112928,6 +112946,10 @@ var ts;
|
|
|
112928
112946
|
commentsDisabled = false;
|
|
112929
112947
|
}
|
|
112930
112948
|
emitTrailingCommentsOfNode(node, emitFlags, commentRange.pos, commentRange.end, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd);
|
|
112949
|
+
var typeNode = ts.getTypeNode(node);
|
|
112950
|
+
if (typeNode) {
|
|
112951
|
+
emitTrailingCommentsOfNode(node, emitFlags, typeNode.pos, typeNode.end, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd);
|
|
112952
|
+
}
|
|
112931
112953
|
}
|
|
112932
112954
|
function emitLeadingCommentsOfNode(node, emitFlags, pos, end) {
|
|
112933
112955
|
enterComment();
|
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.7.0-dev.
|
|
5
|
+
"version": "4.7.0-dev.20220224",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|