typescript 4.9.0-dev.20220822 → 4.9.0-dev.20220823
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 +41 -41
- package/lib/tsserver.js +59 -59
- package/lib/tsserverlibrary.d.ts +2 -0
- package/lib/tsserverlibrary.js +59 -59
- package/lib/typescript.d.ts +2 -0
- package/lib/typescript.js +58 -58
- package/lib/typescriptServices.d.ts +2 -0
- package/lib/typescriptServices.js +58 -58
- package/lib/typingsInstaller.js +49 -49
- package/package.json +2 -2
- package/.eslintcache +0 -1
package/lib/typescript.js
CHANGED
|
@@ -99,7 +99,7 @@ var ts;
|
|
|
99
99
|
// The following is baselined as a literal template type without intervention
|
|
100
100
|
/** The version of the TypeScript compiler release */
|
|
101
101
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
102
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
102
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220823";
|
|
103
103
|
/* @internal */
|
|
104
104
|
var Comparison;
|
|
105
105
|
(function (Comparison) {
|
|
@@ -120,7 +120,7 @@ var ts;
|
|
|
120
120
|
function tryGetNativeMap() {
|
|
121
121
|
// Internet Explorer's Map doesn't support iteration, so don't use it.
|
|
122
122
|
var gMap = globals === null || globals === void 0 ? void 0 : globals.Map;
|
|
123
|
-
// eslint-disable-next-line no-in-operator
|
|
123
|
+
// eslint-disable-next-line local/no-in-operator
|
|
124
124
|
var constructor = typeof gMap !== "undefined" && "entries" in gMap.prototype && new gMap([[0, 0]]).size === 1 ? gMap : undefined;
|
|
125
125
|
if (!constructor) {
|
|
126
126
|
throw new Error("No compatible Map implementation found.");
|
|
@@ -134,7 +134,7 @@ var ts;
|
|
|
134
134
|
function tryGetNativeSet() {
|
|
135
135
|
// Internet Explorer's Set doesn't support iteration, so don't use it.
|
|
136
136
|
var gSet = globals === null || globals === void 0 ? void 0 : globals.Set;
|
|
137
|
-
// eslint-disable-next-line no-in-operator
|
|
137
|
+
// eslint-disable-next-line local/no-in-operator
|
|
138
138
|
var constructor = typeof gSet !== "undefined" && "entries" in gSet.prototype && new gSet([0]).size === 1 ? gSet : undefined;
|
|
139
139
|
if (!constructor) {
|
|
140
140
|
throw new Error("No compatible Set implementation found.");
|
|
@@ -2833,7 +2833,7 @@ var ts;
|
|
|
2833
2833
|
Debug.formatControlFlowGraph = formatControlFlowGraph;
|
|
2834
2834
|
var flowNodeProto;
|
|
2835
2835
|
function attachFlowNodeDebugInfoWorker(flowNode) {
|
|
2836
|
-
if (!("__debugFlowFlags" in flowNode)) { // eslint-disable-line no-in-operator
|
|
2836
|
+
if (!("__debugFlowFlags" in flowNode)) { // eslint-disable-line local/no-in-operator
|
|
2837
2837
|
Object.defineProperties(flowNode, {
|
|
2838
2838
|
// for use with vscode-js-debug's new customDescriptionGenerator in launch.json
|
|
2839
2839
|
__tsDebuggerDisplay: {
|
|
@@ -2879,7 +2879,7 @@ var ts;
|
|
|
2879
2879
|
Debug.attachFlowNodeDebugInfo = attachFlowNodeDebugInfo;
|
|
2880
2880
|
var nodeArrayProto;
|
|
2881
2881
|
function attachNodeArrayDebugInfoWorker(array) {
|
|
2882
|
-
if (!("__tsDebuggerDisplay" in array)) { // eslint-disable-line no-in-operator
|
|
2882
|
+
if (!("__tsDebuggerDisplay" in array)) { // eslint-disable-line local/no-in-operator
|
|
2883
2883
|
Object.defineProperties(array, {
|
|
2884
2884
|
__tsDebuggerDisplay: {
|
|
2885
2885
|
value: function (defaultValue) {
|
|
@@ -30534,17 +30534,6 @@ var ts;
|
|
|
30534
30534
|
|| kind === 173 /* SetAccessor */;
|
|
30535
30535
|
}
|
|
30536
30536
|
ts.canHaveIllegalTypeParameters = canHaveIllegalTypeParameters;
|
|
30537
|
-
function canHaveDecorators(node) {
|
|
30538
|
-
var kind = node.kind;
|
|
30539
|
-
return kind === 164 /* Parameter */
|
|
30540
|
-
|| kind === 167 /* PropertyDeclaration */
|
|
30541
|
-
|| kind === 169 /* MethodDeclaration */
|
|
30542
|
-
|| kind === 172 /* GetAccessor */
|
|
30543
|
-
|| kind === 173 /* SetAccessor */
|
|
30544
|
-
|| kind === 226 /* ClassExpression */
|
|
30545
|
-
|| kind === 257 /* ClassDeclaration */;
|
|
30546
|
-
}
|
|
30547
|
-
ts.canHaveDecorators = canHaveDecorators;
|
|
30548
30537
|
function canHaveIllegalDecorators(node) {
|
|
30549
30538
|
var kind = node.kind;
|
|
30550
30539
|
return kind === 296 /* PropertyAssignment */
|
|
@@ -30566,35 +30555,6 @@ var ts;
|
|
|
30566
30555
|
|| kind === 271 /* ExportAssignment */;
|
|
30567
30556
|
}
|
|
30568
30557
|
ts.canHaveIllegalDecorators = canHaveIllegalDecorators;
|
|
30569
|
-
function canHaveModifiers(node) {
|
|
30570
|
-
var kind = node.kind;
|
|
30571
|
-
return kind === 163 /* TypeParameter */
|
|
30572
|
-
|| kind === 164 /* Parameter */
|
|
30573
|
-
|| kind === 166 /* PropertySignature */
|
|
30574
|
-
|| kind === 167 /* PropertyDeclaration */
|
|
30575
|
-
|| kind === 168 /* MethodSignature */
|
|
30576
|
-
|| kind === 169 /* MethodDeclaration */
|
|
30577
|
-
|| kind === 171 /* Constructor */
|
|
30578
|
-
|| kind === 172 /* GetAccessor */
|
|
30579
|
-
|| kind === 173 /* SetAccessor */
|
|
30580
|
-
|| kind === 176 /* IndexSignature */
|
|
30581
|
-
|| kind === 180 /* ConstructorType */
|
|
30582
|
-
|| kind === 213 /* FunctionExpression */
|
|
30583
|
-
|| kind === 214 /* ArrowFunction */
|
|
30584
|
-
|| kind === 226 /* ClassExpression */
|
|
30585
|
-
|| kind === 237 /* VariableStatement */
|
|
30586
|
-
|| kind === 256 /* FunctionDeclaration */
|
|
30587
|
-
|| kind === 257 /* ClassDeclaration */
|
|
30588
|
-
|| kind === 258 /* InterfaceDeclaration */
|
|
30589
|
-
|| kind === 259 /* TypeAliasDeclaration */
|
|
30590
|
-
|| kind === 260 /* EnumDeclaration */
|
|
30591
|
-
|| kind === 261 /* ModuleDeclaration */
|
|
30592
|
-
|| kind === 265 /* ImportEqualsDeclaration */
|
|
30593
|
-
|| kind === 266 /* ImportDeclaration */
|
|
30594
|
-
|| kind === 271 /* ExportAssignment */
|
|
30595
|
-
|| kind === 272 /* ExportDeclaration */;
|
|
30596
|
-
}
|
|
30597
|
-
ts.canHaveModifiers = canHaveModifiers;
|
|
30598
30558
|
function canHaveIllegalModifiers(node) {
|
|
30599
30559
|
var kind = node.kind;
|
|
30600
30560
|
return kind === 170 /* ClassStaticBlockDeclaration */
|
|
@@ -30883,6 +30843,46 @@ var ts;
|
|
|
30883
30843
|
return location ? ts.setTextRangePosEnd(range, location.pos, location.end) : range;
|
|
30884
30844
|
}
|
|
30885
30845
|
ts.setTextRange = setTextRange;
|
|
30846
|
+
function canHaveModifiers(node) {
|
|
30847
|
+
var kind = node.kind;
|
|
30848
|
+
return kind === 163 /* TypeParameter */
|
|
30849
|
+
|| kind === 164 /* Parameter */
|
|
30850
|
+
|| kind === 166 /* PropertySignature */
|
|
30851
|
+
|| kind === 167 /* PropertyDeclaration */
|
|
30852
|
+
|| kind === 168 /* MethodSignature */
|
|
30853
|
+
|| kind === 169 /* MethodDeclaration */
|
|
30854
|
+
|| kind === 171 /* Constructor */
|
|
30855
|
+
|| kind === 172 /* GetAccessor */
|
|
30856
|
+
|| kind === 173 /* SetAccessor */
|
|
30857
|
+
|| kind === 176 /* IndexSignature */
|
|
30858
|
+
|| kind === 180 /* ConstructorType */
|
|
30859
|
+
|| kind === 213 /* FunctionExpression */
|
|
30860
|
+
|| kind === 214 /* ArrowFunction */
|
|
30861
|
+
|| kind === 226 /* ClassExpression */
|
|
30862
|
+
|| kind === 237 /* VariableStatement */
|
|
30863
|
+
|| kind === 256 /* FunctionDeclaration */
|
|
30864
|
+
|| kind === 257 /* ClassDeclaration */
|
|
30865
|
+
|| kind === 258 /* InterfaceDeclaration */
|
|
30866
|
+
|| kind === 259 /* TypeAliasDeclaration */
|
|
30867
|
+
|| kind === 260 /* EnumDeclaration */
|
|
30868
|
+
|| kind === 261 /* ModuleDeclaration */
|
|
30869
|
+
|| kind === 265 /* ImportEqualsDeclaration */
|
|
30870
|
+
|| kind === 266 /* ImportDeclaration */
|
|
30871
|
+
|| kind === 271 /* ExportAssignment */
|
|
30872
|
+
|| kind === 272 /* ExportDeclaration */;
|
|
30873
|
+
}
|
|
30874
|
+
ts.canHaveModifiers = canHaveModifiers;
|
|
30875
|
+
function canHaveDecorators(node) {
|
|
30876
|
+
var kind = node.kind;
|
|
30877
|
+
return kind === 164 /* Parameter */
|
|
30878
|
+
|| kind === 167 /* PropertyDeclaration */
|
|
30879
|
+
|| kind === 169 /* MethodDeclaration */
|
|
30880
|
+
|| kind === 172 /* GetAccessor */
|
|
30881
|
+
|| kind === 173 /* SetAccessor */
|
|
30882
|
+
|| kind === 226 /* ClassExpression */
|
|
30883
|
+
|| kind === 257 /* ClassDeclaration */;
|
|
30884
|
+
}
|
|
30885
|
+
ts.canHaveDecorators = canHaveDecorators;
|
|
30886
30886
|
})(ts || (ts = {}));
|
|
30887
30887
|
var ts;
|
|
30888
30888
|
(function (ts) {
|
|
@@ -49719,10 +49719,10 @@ var ts;
|
|
|
49719
49719
|
}
|
|
49720
49720
|
// Issue errors globally
|
|
49721
49721
|
var file = ts.getSourceFileOfNode(location);
|
|
49722
|
-
addErrorOrSuggestion(isError, "message" in message ? ts.createFileDiagnostic(file, 0, 0, message, arg0, arg1, arg2, arg3) : ts.createDiagnosticForFileFromMessageChain(file, message)); // eslint-disable-line no-in-operator
|
|
49722
|
+
addErrorOrSuggestion(isError, "message" in message ? ts.createFileDiagnostic(file, 0, 0, message, arg0, arg1, arg2, arg3) : ts.createDiagnosticForFileFromMessageChain(file, message)); // eslint-disable-line local/no-in-operator
|
|
49723
49723
|
return;
|
|
49724
49724
|
}
|
|
49725
|
-
addErrorOrSuggestion(isError, "message" in message ? ts.createDiagnosticForNode(location, message, arg0, arg1, arg2, arg3) : ts.createDiagnosticForNodeFromMessageChain(location, message)); // eslint-disable-line no-in-operator
|
|
49725
|
+
addErrorOrSuggestion(isError, "message" in message ? ts.createDiagnosticForNode(location, message, arg0, arg1, arg2, arg3) : ts.createDiagnosticForNodeFromMessageChain(location, message)); // eslint-disable-line local/no-in-operator
|
|
49726
49726
|
}
|
|
49727
49727
|
function errorAndMaybeSuggestAwait(location, maybeMissingAwait, message, arg0, arg1, arg2, arg3) {
|
|
49728
49728
|
var diagnostic = error(location, message, arg0, arg1, arg2, arg3);
|
|
@@ -91349,7 +91349,7 @@ var ts;
|
|
|
91349
91349
|
exit();
|
|
91350
91350
|
return sourceIndex;
|
|
91351
91351
|
}
|
|
91352
|
-
/* eslint-disable boolean-trivia, no-null/no-null */
|
|
91352
|
+
/* eslint-disable local/boolean-trivia, no-null/no-null */
|
|
91353
91353
|
function setSourceContent(sourceIndex, content) {
|
|
91354
91354
|
enter();
|
|
91355
91355
|
if (content !== null) {
|
|
@@ -91362,7 +91362,7 @@ var ts;
|
|
|
91362
91362
|
}
|
|
91363
91363
|
exit();
|
|
91364
91364
|
}
|
|
91365
|
-
/* eslint-enable boolean-trivia, no-null/no-null */
|
|
91365
|
+
/* eslint-enable local/boolean-trivia, no-null/no-null */
|
|
91366
91366
|
function addName(name) {
|
|
91367
91367
|
enter();
|
|
91368
91368
|
if (!nameToNameIndexMap)
|
|
@@ -133037,7 +133037,7 @@ var ts;
|
|
|
133037
133037
|
// defined in `ts.commentPragmas` would be excessive, but we can avoid
|
|
133038
133038
|
// some obvious false positives (e.g. in XML-like doc comments) by
|
|
133039
133039
|
// checking the element name.
|
|
133040
|
-
// eslint-disable-next-line no-in-operator
|
|
133040
|
+
// eslint-disable-next-line local/no-in-operator
|
|
133041
133041
|
if (!match[3] || !(match[3] in ts.commentPragmas)) {
|
|
133042
133042
|
return false;
|
|
133043
133043
|
}
|
|
@@ -140734,7 +140734,7 @@ var ts;
|
|
|
140734
140734
|
}
|
|
140735
140735
|
}
|
|
140736
140736
|
function addReference(referenceLocation, relatedSymbol, state) {
|
|
140737
|
-
var _a = "kind" in relatedSymbol ? relatedSymbol : { kind: undefined, symbol: relatedSymbol }, kind = _a.kind, symbol = _a.symbol; // eslint-disable-line no-in-operator
|
|
140737
|
+
var _a = "kind" in relatedSymbol ? relatedSymbol : { kind: undefined, symbol: relatedSymbol }, kind = _a.kind, symbol = _a.symbol; // eslint-disable-line local/no-in-operator
|
|
140738
140738
|
// if rename symbol from default export anonymous function, for example `export default function() {}`, we do not need to add reference
|
|
140739
140739
|
if (state.options.use === 2 /* Rename */ && referenceLocation.kind === 88 /* DefaultKeyword */) {
|
|
140740
140740
|
return;
|
|
@@ -146520,11 +146520,11 @@ var ts;
|
|
|
146520
146520
|
// not enough to put us in the substitution expression; we should consider ourselves part of
|
|
146521
146521
|
// the *next* span's expression by offsetting the index (argIndex = (spanIndex + 1) + 1).
|
|
146522
146522
|
//
|
|
146523
|
-
/* eslint-disable no-double-space */
|
|
146523
|
+
/* eslint-disable local/no-double-space */
|
|
146524
146524
|
// Example: f `# abcd $#{# 1 + 1# }# efghi ${ #"#hello"# } # `
|
|
146525
146525
|
// ^ ^ ^ ^ ^ ^ ^ ^ ^
|
|
146526
146526
|
// Case: 1 1 3 2 1 3 2 2 1
|
|
146527
|
-
/* eslint-enable no-double-space */
|
|
146527
|
+
/* eslint-enable local/no-double-space */
|
|
146528
146528
|
ts.Debug.assert(position >= node.getStart(), "Assumed 'position' could not occur before node.");
|
|
146529
146529
|
if (ts.isTemplateLiteralToken(node)) {
|
|
146530
146530
|
if (ts.isInsideTemplateLiteral(node, position, sourceFile)) {
|
|
@@ -154545,7 +154545,7 @@ var ts;
|
|
|
154545
154545
|
name = getMapEntryOrDefault(funcNode.name);
|
|
154546
154546
|
}
|
|
154547
154547
|
// return undefined argName when arg is null or undefined
|
|
154548
|
-
// eslint-disable-next-line no-in-operator
|
|
154548
|
+
// eslint-disable-next-line local/no-in-operator
|
|
154549
154549
|
if (!name || "identifier" in name && name.identifier.text === "undefined") {
|
|
154550
154550
|
return undefined;
|
|
154551
154551
|
}
|
|
@@ -166731,7 +166731,7 @@ var ts;
|
|
|
166731
166731
|
this.kind = kind;
|
|
166732
166732
|
}
|
|
166733
166733
|
NodeObject.prototype.assertHasRealPosition = function (message) {
|
|
166734
|
-
// eslint-disable-next-line debug-assert
|
|
166734
|
+
// eslint-disable-next-line local/debug-assert
|
|
166735
166735
|
ts.Debug.assert(!ts.positionIsSynthesized(this.pos) && !ts.positionIsSynthesized(this.end), message || "Node must have a real position for this operation");
|
|
166736
166736
|
};
|
|
166737
166737
|
NodeObject.prototype.getSourceFile = function () {
|
|
@@ -169775,7 +169775,7 @@ var debugObjectHost = (function () {
|
|
|
169775
169775
|
return this;
|
|
169776
169776
|
})();
|
|
169777
169777
|
// We need to use 'null' to interface with the managed side.
|
|
169778
|
-
/* eslint-disable no-in-operator */
|
|
169778
|
+
/* eslint-disable local/no-in-operator */
|
|
169779
169779
|
/* @internal */
|
|
169780
169780
|
var ts;
|
|
169781
169781
|
(function (ts) {
|
|
@@ -170575,7 +170575,7 @@ var ts;
|
|
|
170575
170575
|
}());
|
|
170576
170576
|
ts.TypeScriptServicesFactory = TypeScriptServicesFactory;
|
|
170577
170577
|
})(ts || (ts = {}));
|
|
170578
|
-
/* eslint-enable no-in-operator */
|
|
170578
|
+
/* eslint-enable local/no-in-operator */
|
|
170579
170579
|
// We polyfill `globalThis` here so re can reliably patch the global scope
|
|
170580
170580
|
// in the contexts we want to in the same way across script and module formats
|
|
170581
170581
|
/* eslint-enable no-var */
|
|
@@ -171345,7 +171345,7 @@ var ts;
|
|
|
171345
171345
|
if (typeof value === "number") {
|
|
171346
171346
|
return ts.factory.createNumericLiteral(value);
|
|
171347
171347
|
}
|
|
171348
|
-
// eslint-disable-next-line no-in-operator
|
|
171348
|
+
// eslint-disable-next-line local/no-in-operator
|
|
171349
171349
|
if (typeof value === "object" && "base10Value" in value) { // PseudoBigInt
|
|
171350
171350
|
return ts.factory.createBigIntLiteral(value);
|
|
171351
171351
|
}
|
|
@@ -4834,6 +4834,8 @@ declare namespace ts {
|
|
|
4834
4834
|
}
|
|
4835
4835
|
declare namespace ts {
|
|
4836
4836
|
function setTextRange<T extends TextRange>(range: T, location: TextRange | undefined): T;
|
|
4837
|
+
function canHaveModifiers(node: Node): node is HasModifiers;
|
|
4838
|
+
function canHaveDecorators(node: Node): node is HasDecorators;
|
|
4837
4839
|
}
|
|
4838
4840
|
declare namespace ts {
|
|
4839
4841
|
/**
|
|
@@ -99,7 +99,7 @@ var ts;
|
|
|
99
99
|
// The following is baselined as a literal template type without intervention
|
|
100
100
|
/** The version of the TypeScript compiler release */
|
|
101
101
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
102
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
102
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220823";
|
|
103
103
|
/* @internal */
|
|
104
104
|
var Comparison;
|
|
105
105
|
(function (Comparison) {
|
|
@@ -120,7 +120,7 @@ var ts;
|
|
|
120
120
|
function tryGetNativeMap() {
|
|
121
121
|
// Internet Explorer's Map doesn't support iteration, so don't use it.
|
|
122
122
|
var gMap = globals === null || globals === void 0 ? void 0 : globals.Map;
|
|
123
|
-
// eslint-disable-next-line no-in-operator
|
|
123
|
+
// eslint-disable-next-line local/no-in-operator
|
|
124
124
|
var constructor = typeof gMap !== "undefined" && "entries" in gMap.prototype && new gMap([[0, 0]]).size === 1 ? gMap : undefined;
|
|
125
125
|
if (!constructor) {
|
|
126
126
|
throw new Error("No compatible Map implementation found.");
|
|
@@ -134,7 +134,7 @@ var ts;
|
|
|
134
134
|
function tryGetNativeSet() {
|
|
135
135
|
// Internet Explorer's Set doesn't support iteration, so don't use it.
|
|
136
136
|
var gSet = globals === null || globals === void 0 ? void 0 : globals.Set;
|
|
137
|
-
// eslint-disable-next-line no-in-operator
|
|
137
|
+
// eslint-disable-next-line local/no-in-operator
|
|
138
138
|
var constructor = typeof gSet !== "undefined" && "entries" in gSet.prototype && new gSet([0]).size === 1 ? gSet : undefined;
|
|
139
139
|
if (!constructor) {
|
|
140
140
|
throw new Error("No compatible Set implementation found.");
|
|
@@ -2833,7 +2833,7 @@ var ts;
|
|
|
2833
2833
|
Debug.formatControlFlowGraph = formatControlFlowGraph;
|
|
2834
2834
|
var flowNodeProto;
|
|
2835
2835
|
function attachFlowNodeDebugInfoWorker(flowNode) {
|
|
2836
|
-
if (!("__debugFlowFlags" in flowNode)) { // eslint-disable-line no-in-operator
|
|
2836
|
+
if (!("__debugFlowFlags" in flowNode)) { // eslint-disable-line local/no-in-operator
|
|
2837
2837
|
Object.defineProperties(flowNode, {
|
|
2838
2838
|
// for use with vscode-js-debug's new customDescriptionGenerator in launch.json
|
|
2839
2839
|
__tsDebuggerDisplay: {
|
|
@@ -2879,7 +2879,7 @@ var ts;
|
|
|
2879
2879
|
Debug.attachFlowNodeDebugInfo = attachFlowNodeDebugInfo;
|
|
2880
2880
|
var nodeArrayProto;
|
|
2881
2881
|
function attachNodeArrayDebugInfoWorker(array) {
|
|
2882
|
-
if (!("__tsDebuggerDisplay" in array)) { // eslint-disable-line no-in-operator
|
|
2882
|
+
if (!("__tsDebuggerDisplay" in array)) { // eslint-disable-line local/no-in-operator
|
|
2883
2883
|
Object.defineProperties(array, {
|
|
2884
2884
|
__tsDebuggerDisplay: {
|
|
2885
2885
|
value: function (defaultValue) {
|
|
@@ -30534,17 +30534,6 @@ var ts;
|
|
|
30534
30534
|
|| kind === 173 /* SetAccessor */;
|
|
30535
30535
|
}
|
|
30536
30536
|
ts.canHaveIllegalTypeParameters = canHaveIllegalTypeParameters;
|
|
30537
|
-
function canHaveDecorators(node) {
|
|
30538
|
-
var kind = node.kind;
|
|
30539
|
-
return kind === 164 /* Parameter */
|
|
30540
|
-
|| kind === 167 /* PropertyDeclaration */
|
|
30541
|
-
|| kind === 169 /* MethodDeclaration */
|
|
30542
|
-
|| kind === 172 /* GetAccessor */
|
|
30543
|
-
|| kind === 173 /* SetAccessor */
|
|
30544
|
-
|| kind === 226 /* ClassExpression */
|
|
30545
|
-
|| kind === 257 /* ClassDeclaration */;
|
|
30546
|
-
}
|
|
30547
|
-
ts.canHaveDecorators = canHaveDecorators;
|
|
30548
30537
|
function canHaveIllegalDecorators(node) {
|
|
30549
30538
|
var kind = node.kind;
|
|
30550
30539
|
return kind === 296 /* PropertyAssignment */
|
|
@@ -30566,35 +30555,6 @@ var ts;
|
|
|
30566
30555
|
|| kind === 271 /* ExportAssignment */;
|
|
30567
30556
|
}
|
|
30568
30557
|
ts.canHaveIllegalDecorators = canHaveIllegalDecorators;
|
|
30569
|
-
function canHaveModifiers(node) {
|
|
30570
|
-
var kind = node.kind;
|
|
30571
|
-
return kind === 163 /* TypeParameter */
|
|
30572
|
-
|| kind === 164 /* Parameter */
|
|
30573
|
-
|| kind === 166 /* PropertySignature */
|
|
30574
|
-
|| kind === 167 /* PropertyDeclaration */
|
|
30575
|
-
|| kind === 168 /* MethodSignature */
|
|
30576
|
-
|| kind === 169 /* MethodDeclaration */
|
|
30577
|
-
|| kind === 171 /* Constructor */
|
|
30578
|
-
|| kind === 172 /* GetAccessor */
|
|
30579
|
-
|| kind === 173 /* SetAccessor */
|
|
30580
|
-
|| kind === 176 /* IndexSignature */
|
|
30581
|
-
|| kind === 180 /* ConstructorType */
|
|
30582
|
-
|| kind === 213 /* FunctionExpression */
|
|
30583
|
-
|| kind === 214 /* ArrowFunction */
|
|
30584
|
-
|| kind === 226 /* ClassExpression */
|
|
30585
|
-
|| kind === 237 /* VariableStatement */
|
|
30586
|
-
|| kind === 256 /* FunctionDeclaration */
|
|
30587
|
-
|| kind === 257 /* ClassDeclaration */
|
|
30588
|
-
|| kind === 258 /* InterfaceDeclaration */
|
|
30589
|
-
|| kind === 259 /* TypeAliasDeclaration */
|
|
30590
|
-
|| kind === 260 /* EnumDeclaration */
|
|
30591
|
-
|| kind === 261 /* ModuleDeclaration */
|
|
30592
|
-
|| kind === 265 /* ImportEqualsDeclaration */
|
|
30593
|
-
|| kind === 266 /* ImportDeclaration */
|
|
30594
|
-
|| kind === 271 /* ExportAssignment */
|
|
30595
|
-
|| kind === 272 /* ExportDeclaration */;
|
|
30596
|
-
}
|
|
30597
|
-
ts.canHaveModifiers = canHaveModifiers;
|
|
30598
30558
|
function canHaveIllegalModifiers(node) {
|
|
30599
30559
|
var kind = node.kind;
|
|
30600
30560
|
return kind === 170 /* ClassStaticBlockDeclaration */
|
|
@@ -30883,6 +30843,46 @@ var ts;
|
|
|
30883
30843
|
return location ? ts.setTextRangePosEnd(range, location.pos, location.end) : range;
|
|
30884
30844
|
}
|
|
30885
30845
|
ts.setTextRange = setTextRange;
|
|
30846
|
+
function canHaveModifiers(node) {
|
|
30847
|
+
var kind = node.kind;
|
|
30848
|
+
return kind === 163 /* TypeParameter */
|
|
30849
|
+
|| kind === 164 /* Parameter */
|
|
30850
|
+
|| kind === 166 /* PropertySignature */
|
|
30851
|
+
|| kind === 167 /* PropertyDeclaration */
|
|
30852
|
+
|| kind === 168 /* MethodSignature */
|
|
30853
|
+
|| kind === 169 /* MethodDeclaration */
|
|
30854
|
+
|| kind === 171 /* Constructor */
|
|
30855
|
+
|| kind === 172 /* GetAccessor */
|
|
30856
|
+
|| kind === 173 /* SetAccessor */
|
|
30857
|
+
|| kind === 176 /* IndexSignature */
|
|
30858
|
+
|| kind === 180 /* ConstructorType */
|
|
30859
|
+
|| kind === 213 /* FunctionExpression */
|
|
30860
|
+
|| kind === 214 /* ArrowFunction */
|
|
30861
|
+
|| kind === 226 /* ClassExpression */
|
|
30862
|
+
|| kind === 237 /* VariableStatement */
|
|
30863
|
+
|| kind === 256 /* FunctionDeclaration */
|
|
30864
|
+
|| kind === 257 /* ClassDeclaration */
|
|
30865
|
+
|| kind === 258 /* InterfaceDeclaration */
|
|
30866
|
+
|| kind === 259 /* TypeAliasDeclaration */
|
|
30867
|
+
|| kind === 260 /* EnumDeclaration */
|
|
30868
|
+
|| kind === 261 /* ModuleDeclaration */
|
|
30869
|
+
|| kind === 265 /* ImportEqualsDeclaration */
|
|
30870
|
+
|| kind === 266 /* ImportDeclaration */
|
|
30871
|
+
|| kind === 271 /* ExportAssignment */
|
|
30872
|
+
|| kind === 272 /* ExportDeclaration */;
|
|
30873
|
+
}
|
|
30874
|
+
ts.canHaveModifiers = canHaveModifiers;
|
|
30875
|
+
function canHaveDecorators(node) {
|
|
30876
|
+
var kind = node.kind;
|
|
30877
|
+
return kind === 164 /* Parameter */
|
|
30878
|
+
|| kind === 167 /* PropertyDeclaration */
|
|
30879
|
+
|| kind === 169 /* MethodDeclaration */
|
|
30880
|
+
|| kind === 172 /* GetAccessor */
|
|
30881
|
+
|| kind === 173 /* SetAccessor */
|
|
30882
|
+
|| kind === 226 /* ClassExpression */
|
|
30883
|
+
|| kind === 257 /* ClassDeclaration */;
|
|
30884
|
+
}
|
|
30885
|
+
ts.canHaveDecorators = canHaveDecorators;
|
|
30886
30886
|
})(ts || (ts = {}));
|
|
30887
30887
|
var ts;
|
|
30888
30888
|
(function (ts) {
|
|
@@ -49719,10 +49719,10 @@ var ts;
|
|
|
49719
49719
|
}
|
|
49720
49720
|
// Issue errors globally
|
|
49721
49721
|
var file = ts.getSourceFileOfNode(location);
|
|
49722
|
-
addErrorOrSuggestion(isError, "message" in message ? ts.createFileDiagnostic(file, 0, 0, message, arg0, arg1, arg2, arg3) : ts.createDiagnosticForFileFromMessageChain(file, message)); // eslint-disable-line no-in-operator
|
|
49722
|
+
addErrorOrSuggestion(isError, "message" in message ? ts.createFileDiagnostic(file, 0, 0, message, arg0, arg1, arg2, arg3) : ts.createDiagnosticForFileFromMessageChain(file, message)); // eslint-disable-line local/no-in-operator
|
|
49723
49723
|
return;
|
|
49724
49724
|
}
|
|
49725
|
-
addErrorOrSuggestion(isError, "message" in message ? ts.createDiagnosticForNode(location, message, arg0, arg1, arg2, arg3) : ts.createDiagnosticForNodeFromMessageChain(location, message)); // eslint-disable-line no-in-operator
|
|
49725
|
+
addErrorOrSuggestion(isError, "message" in message ? ts.createDiagnosticForNode(location, message, arg0, arg1, arg2, arg3) : ts.createDiagnosticForNodeFromMessageChain(location, message)); // eslint-disable-line local/no-in-operator
|
|
49726
49726
|
}
|
|
49727
49727
|
function errorAndMaybeSuggestAwait(location, maybeMissingAwait, message, arg0, arg1, arg2, arg3) {
|
|
49728
49728
|
var diagnostic = error(location, message, arg0, arg1, arg2, arg3);
|
|
@@ -91349,7 +91349,7 @@ var ts;
|
|
|
91349
91349
|
exit();
|
|
91350
91350
|
return sourceIndex;
|
|
91351
91351
|
}
|
|
91352
|
-
/* eslint-disable boolean-trivia, no-null/no-null */
|
|
91352
|
+
/* eslint-disable local/boolean-trivia, no-null/no-null */
|
|
91353
91353
|
function setSourceContent(sourceIndex, content) {
|
|
91354
91354
|
enter();
|
|
91355
91355
|
if (content !== null) {
|
|
@@ -91362,7 +91362,7 @@ var ts;
|
|
|
91362
91362
|
}
|
|
91363
91363
|
exit();
|
|
91364
91364
|
}
|
|
91365
|
-
/* eslint-enable boolean-trivia, no-null/no-null */
|
|
91365
|
+
/* eslint-enable local/boolean-trivia, no-null/no-null */
|
|
91366
91366
|
function addName(name) {
|
|
91367
91367
|
enter();
|
|
91368
91368
|
if (!nameToNameIndexMap)
|
|
@@ -133037,7 +133037,7 @@ var ts;
|
|
|
133037
133037
|
// defined in `ts.commentPragmas` would be excessive, but we can avoid
|
|
133038
133038
|
// some obvious false positives (e.g. in XML-like doc comments) by
|
|
133039
133039
|
// checking the element name.
|
|
133040
|
-
// eslint-disable-next-line no-in-operator
|
|
133040
|
+
// eslint-disable-next-line local/no-in-operator
|
|
133041
133041
|
if (!match[3] || !(match[3] in ts.commentPragmas)) {
|
|
133042
133042
|
return false;
|
|
133043
133043
|
}
|
|
@@ -140734,7 +140734,7 @@ var ts;
|
|
|
140734
140734
|
}
|
|
140735
140735
|
}
|
|
140736
140736
|
function addReference(referenceLocation, relatedSymbol, state) {
|
|
140737
|
-
var _a = "kind" in relatedSymbol ? relatedSymbol : { kind: undefined, symbol: relatedSymbol }, kind = _a.kind, symbol = _a.symbol; // eslint-disable-line no-in-operator
|
|
140737
|
+
var _a = "kind" in relatedSymbol ? relatedSymbol : { kind: undefined, symbol: relatedSymbol }, kind = _a.kind, symbol = _a.symbol; // eslint-disable-line local/no-in-operator
|
|
140738
140738
|
// if rename symbol from default export anonymous function, for example `export default function() {}`, we do not need to add reference
|
|
140739
140739
|
if (state.options.use === 2 /* Rename */ && referenceLocation.kind === 88 /* DefaultKeyword */) {
|
|
140740
140740
|
return;
|
|
@@ -146520,11 +146520,11 @@ var ts;
|
|
|
146520
146520
|
// not enough to put us in the substitution expression; we should consider ourselves part of
|
|
146521
146521
|
// the *next* span's expression by offsetting the index (argIndex = (spanIndex + 1) + 1).
|
|
146522
146522
|
//
|
|
146523
|
-
/* eslint-disable no-double-space */
|
|
146523
|
+
/* eslint-disable local/no-double-space */
|
|
146524
146524
|
// Example: f `# abcd $#{# 1 + 1# }# efghi ${ #"#hello"# } # `
|
|
146525
146525
|
// ^ ^ ^ ^ ^ ^ ^ ^ ^
|
|
146526
146526
|
// Case: 1 1 3 2 1 3 2 2 1
|
|
146527
|
-
/* eslint-enable no-double-space */
|
|
146527
|
+
/* eslint-enable local/no-double-space */
|
|
146528
146528
|
ts.Debug.assert(position >= node.getStart(), "Assumed 'position' could not occur before node.");
|
|
146529
146529
|
if (ts.isTemplateLiteralToken(node)) {
|
|
146530
146530
|
if (ts.isInsideTemplateLiteral(node, position, sourceFile)) {
|
|
@@ -154545,7 +154545,7 @@ var ts;
|
|
|
154545
154545
|
name = getMapEntryOrDefault(funcNode.name);
|
|
154546
154546
|
}
|
|
154547
154547
|
// return undefined argName when arg is null or undefined
|
|
154548
|
-
// eslint-disable-next-line no-in-operator
|
|
154548
|
+
// eslint-disable-next-line local/no-in-operator
|
|
154549
154549
|
if (!name || "identifier" in name && name.identifier.text === "undefined") {
|
|
154550
154550
|
return undefined;
|
|
154551
154551
|
}
|
|
@@ -166731,7 +166731,7 @@ var ts;
|
|
|
166731
166731
|
this.kind = kind;
|
|
166732
166732
|
}
|
|
166733
166733
|
NodeObject.prototype.assertHasRealPosition = function (message) {
|
|
166734
|
-
// eslint-disable-next-line debug-assert
|
|
166734
|
+
// eslint-disable-next-line local/debug-assert
|
|
166735
166735
|
ts.Debug.assert(!ts.positionIsSynthesized(this.pos) && !ts.positionIsSynthesized(this.end), message || "Node must have a real position for this operation");
|
|
166736
166736
|
};
|
|
166737
166737
|
NodeObject.prototype.getSourceFile = function () {
|
|
@@ -169775,7 +169775,7 @@ var debugObjectHost = (function () {
|
|
|
169775
169775
|
return this;
|
|
169776
169776
|
})();
|
|
169777
169777
|
// We need to use 'null' to interface with the managed side.
|
|
169778
|
-
/* eslint-disable no-in-operator */
|
|
169778
|
+
/* eslint-disable local/no-in-operator */
|
|
169779
169779
|
/* @internal */
|
|
169780
169780
|
var ts;
|
|
169781
169781
|
(function (ts) {
|
|
@@ -170575,7 +170575,7 @@ var ts;
|
|
|
170575
170575
|
}());
|
|
170576
170576
|
ts.TypeScriptServicesFactory = TypeScriptServicesFactory;
|
|
170577
170577
|
})(ts || (ts = {}));
|
|
170578
|
-
/* eslint-enable no-in-operator */
|
|
170578
|
+
/* eslint-enable local/no-in-operator */
|
|
170579
170579
|
// We polyfill `globalThis` here so re can reliably patch the global scope
|
|
170580
170580
|
// in the contexts we want to in the same way across script and module formats
|
|
170581
170581
|
/* eslint-enable no-var */
|
|
@@ -171345,7 +171345,7 @@ var ts;
|
|
|
171345
171345
|
if (typeof value === "number") {
|
|
171346
171346
|
return ts.factory.createNumericLiteral(value);
|
|
171347
171347
|
}
|
|
171348
|
-
// eslint-disable-next-line no-in-operator
|
|
171348
|
+
// eslint-disable-next-line local/no-in-operator
|
|
171349
171349
|
if (typeof value === "object" && "base10Value" in value) { // PseudoBigInt
|
|
171350
171350
|
return ts.factory.createBigIntLiteral(value);
|
|
171351
171351
|
}
|