Skip to content

Commit 69f65f5

Browse files
committed
Update LKG
1 parent 6e1e1e7 commit 69f65f5

9 files changed

+534
-620
lines changed

lib/tsc.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ and limitations under the License.
1414
***************************************************************************** */
1515

1616

17-
"use strict";
1817
"use strict";
1918
var __assign = (this && this.__assign) || function () {
2019
__assign = Object.assign || function(t) {
@@ -42631,7 +42630,7 @@ var ts;
4263142630
if (isTupleType(restType)) {
4263242631
var associatedNames = restType.target.associatedNames;
4263342632
var index = pos - paramCount;
42634-
return associatedNames ? associatedNames[index] : restParameter.escapedName + "_" + index;
42633+
return associatedNames && associatedNames[index] || restParameter.escapedName + "_" + index;
4263542634
}
4263642635
return restParameter.escapedName;
4263742636
}
@@ -69852,7 +69851,7 @@ var ts;
6985269851
function emitCommaList(node) {
6985369852
emitExpressionList(node, node.elements, 528);
6985469853
}
69855-
function emitPrologueDirectives(statements, sourceFile, seenPrologueDirectives) {
69854+
function emitPrologueDirectives(statements, sourceFile, seenPrologueDirectives, recordBundleFileSection) {
6985669855
var needsToSetSourceFile = !!sourceFile;
6985769856
for (var i = 0; i < statements.length; i++) {
6985869857
var statement = statements[i];
@@ -69866,7 +69865,7 @@ var ts;
6986669865
writeLine();
6986769866
var pos = writer.getTextPos();
6986869867
emit(statement);
69869-
if (bundleFileInfo)
69868+
if (recordBundleFileSection && bundleFileInfo)
6987069869
bundleFileInfo.sections.push({ pos: pos, end: writer.getTextPos(), kind: "prologue", data: statement.expression.text });
6987169870
if (seenPrologueDirectives) {
6987269871
seenPrologueDirectives.set(statement.expression.text, true);
@@ -69906,7 +69905,7 @@ var ts;
6990669905
}
6990769906
for (var _c = 0, _d = sourceFileOrBundle.sourceFiles; _c < _d.length; _c++) {
6990869907
var sourceFile = _d[_c];
69909-
emitPrologueDirectives(sourceFile.statements, sourceFile, seenPrologueDirectives);
69908+
emitPrologueDirectives(sourceFile.statements, sourceFile, seenPrologueDirectives, true);
6991069909
}
6991169910
setSourceFile(undefined);
6991269911
}
@@ -77495,7 +77494,6 @@ var ts;
7749577494
}
7749677495
}
7749777496
})(ts || (ts = {}));
77498-
//# sourceMappingURL=compiler.release.js.map
7749977497
var ts;
7750077498
(function (ts) {
7750177499
function countLines(program) {

lib/tsserver.js

Lines changed: 26 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -14,31 +14,6 @@ and limitations under the License.
1414
***************************************************************************** */
1515

1616

17-
"use strict";
18-
var __extends = (this && this.__extends) || (function () {
19-
var extendStatics = function (d, b) {
20-
extendStatics = Object.setPrototypeOf ||
21-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
22-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
23-
return extendStatics(d, b);
24-
};
25-
return function (d, b) {
26-
extendStatics(d, b);
27-
function __() { this.constructor = d; }
28-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
29-
};
30-
})();
31-
var __assign = (this && this.__assign) || function () {
32-
__assign = Object.assign || function(t) {
33-
for (var s, i = 1, n = arguments.length; i < n; i++) {
34-
s = arguments[i];
35-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
36-
t[p] = s[p];
37-
}
38-
return t;
39-
};
40-
return __assign.apply(this, arguments);
41-
};
4217
"use strict";
4318
var __assign = (this && this.__assign) || function () {
4419
__assign = Object.assign || function(t) {
@@ -82,6 +57,28 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
8257
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
8358
return cooked;
8459
};
60+
var __extends = (this && this.__extends) || (function () {
61+
var extendStatics = function (d, b) {
62+
extendStatics = Object.setPrototypeOf ||
63+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
64+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
65+
return extendStatics(d, b);
66+
};
67+
return function (d, b) {
68+
extendStatics(d, b);
69+
function __() { this.constructor = d; }
70+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
71+
};
72+
})();
73+
var __rest = (this && this.__rest) || function (s, e) {
74+
var t = {};
75+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
76+
t[p] = s[p];
77+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
78+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
79+
t[p[i]] = s[p[i]];
80+
return t;
81+
};
8582
var ts;
8683
(function (ts) {
8784
// WARNING: The script `configureNightly.ts` uses a regexp to parse out these values.
@@ -51064,7 +51061,7 @@ var ts;
5106451061
if (isTupleType(restType)) {
5106551062
var associatedNames = restType.target.associatedNames;
5106651063
var index = pos - paramCount;
51067-
return associatedNames ? associatedNames[index] : restParameter.escapedName + "_" + index;
51064+
return associatedNames && associatedNames[index] || restParameter.escapedName + "_" + index;
5106851065
}
5106951066
return restParameter.escapedName;
5107051067
}
@@ -85632,7 +85629,7 @@ var ts;
8563285629
* Emits any prologue directives at the start of a Statement list, returning the
8563385630
* number of prologue directives written to the output.
8563485631
*/
85635-
function emitPrologueDirectives(statements, sourceFile, seenPrologueDirectives) {
85632+
function emitPrologueDirectives(statements, sourceFile, seenPrologueDirectives, recordBundleFileSection) {
8563685633
var needsToSetSourceFile = !!sourceFile;
8563785634
for (var i = 0; i < statements.length; i++) {
8563885635
var statement = statements[i];
@@ -85646,7 +85643,7 @@ var ts;
8564685643
writeLine();
8564785644
var pos = writer.getTextPos();
8564885645
emit(statement);
85649-
if (bundleFileInfo)
85646+
if (recordBundleFileSection && bundleFileInfo)
8565085647
bundleFileInfo.sections.push({ pos: pos, end: writer.getTextPos(), kind: "prologue" /* Prologue */, data: statement.expression.text });
8565185648
if (seenPrologueDirectives) {
8565285649
seenPrologueDirectives.set(statement.expression.text, true);
@@ -85687,7 +85684,7 @@ var ts;
8568785684
}
8568885685
for (var _c = 0, _d = sourceFileOrBundle.sourceFiles; _c < _d.length; _c++) {
8568985686
var sourceFile = _d[_c];
85690-
emitPrologueDirectives(sourceFile.statements, sourceFile, seenPrologueDirectives);
85687+
emitPrologueDirectives(sourceFile.statements, sourceFile, seenPrologueDirectives, /*recordBundleFileSection*/ true);
8569185688
}
8569285689
setSourceFile(undefined);
8569385690
}
@@ -94402,32 +94399,6 @@ var ts;
9440294399
}
9440394400
}
9440494401
})(ts || (ts = {}));
94405-
//# sourceMappingURL=compiler.js.map
94406-
"use strict";
94407-
var __assign = (this && this.__assign) || function () {
94408-
__assign = Object.assign || function(t) {
94409-
for (var s, i = 1, n = arguments.length; i < n; i++) {
94410-
s = arguments[i];
94411-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
94412-
t[p] = s[p];
94413-
}
94414-
return t;
94415-
};
94416-
return __assign.apply(this, arguments);
94417-
};
94418-
var __extends = (this && this.__extends) || (function () {
94419-
var extendStatics = function (d, b) {
94420-
extendStatics = Object.setPrototypeOf ||
94421-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
94422-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
94423-
return extendStatics(d, b);
94424-
};
94425-
return function (d, b) {
94426-
extendStatics(d, b);
94427-
function __() { this.constructor = d; }
94428-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
94429-
};
94430-
})();
9443194402
var ts;
9443294403
(function (ts) {
9443394404
var ScriptSnapshot;
@@ -122090,8 +122061,6 @@ var TypeScript;
122090122061
// TODO: it should be moved into a namespace though.
122091122062
/* @internal */
122092122063
var toolsVersion = ts.versionMajorMinor;
122093-
//# sourceMappingURL=services.js.map
122094-
"use strict";
122095122064
/* @internal */
122096122065
var ts;
122097122066
(function (ts) {
@@ -122432,41 +122401,6 @@ var ts;
122432122401
JsTyping.renderPackageNameValidationFailure = renderPackageNameValidationFailure;
122433122402
})(JsTyping = ts.JsTyping || (ts.JsTyping = {}));
122434122403
})(ts || (ts = {}));
122435-
//# sourceMappingURL=jsTyping.js.map
122436-
"use strict";
122437-
var __assign = (this && this.__assign) || function () {
122438-
__assign = Object.assign || function(t) {
122439-
for (var s, i = 1, n = arguments.length; i < n; i++) {
122440-
s = arguments[i];
122441-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
122442-
t[p] = s[p];
122443-
}
122444-
return t;
122445-
};
122446-
return __assign.apply(this, arguments);
122447-
};
122448-
var __extends = (this && this.__extends) || (function () {
122449-
var extendStatics = function (d, b) {
122450-
extendStatics = Object.setPrototypeOf ||
122451-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
122452-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
122453-
return extendStatics(d, b);
122454-
};
122455-
return function (d, b) {
122456-
extendStatics(d, b);
122457-
function __() { this.constructor = d; }
122458-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
122459-
};
122460-
})();
122461-
var __rest = (this && this.__rest) || function (s, e) {
122462-
var t = {};
122463-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
122464-
t[p] = s[p];
122465-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
122466-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
122467-
t[p[i]] = s[p[i]];
122468-
return t;
122469-
};
122470122404
var ts;
122471122405
(function (ts) {
122472122406
var server;
@@ -130295,7 +130229,6 @@ var ts;
130295130229
}());
130296130230
})(server = ts.server || (ts.server = {}));
130297130231
})(ts || (ts = {}));
130298-
//# sourceMappingURL=server.js.map
130299130232
// tslint:disable no-unnecessary-type-assertion (TODO: tslint can't find node types)
130300130233
var ts;
130301130234
(function (ts) {

lib/tsserverlibrary.d.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ declare namespace ts {
422422
FirstJSDocNode = 288,
423423
LastJSDocNode = 310,
424424
FirstJSDocTagNode = 299,
425-
LastJSDocTagNode = 310
425+
LastJSDocTagNode = 310,
426426
}
427427
enum NodeFlags {
428428
None = 0,
@@ -451,7 +451,7 @@ declare namespace ts {
451451
ReachabilityCheckFlags = 384,
452452
ReachabilityAndEmitFlags = 1408,
453453
ContextFlags = 12679168,
454-
TypeExcludesFlags = 20480
454+
TypeExcludesFlags = 20480,
455455
}
456456
enum ModifierFlags {
457457
None = 0,
@@ -1008,7 +1008,7 @@ declare namespace ts {
10081008
Octal = 32,
10091009
HexSpecifier = 64,
10101010
BinarySpecifier = 128,
1011-
OctalSpecifier = 256
1011+
OctalSpecifier = 256,
10121012
}
10131013
interface NumericLiteral extends LiteralExpression {
10141014
kind: SyntaxKind.NumericLiteral;
@@ -2061,7 +2061,7 @@ declare namespace ts {
20612061
WriteTypeParametersOrArguments = 1,
20622062
UseOnlyExternalAliasing = 2,
20632063
AllowAnyNodeKind = 4,
2064-
UseAliasDefinedOutsideCurrentScope = 8
2064+
UseAliasDefinedOutsideCurrentScope = 8,
20652065
}
20662066
enum TypePredicateKind {
20672067
This = 0,
@@ -2139,7 +2139,7 @@ declare namespace ts {
21392139
ExportHasLocal = 944,
21402140
BlockScoped = 418,
21412141
PropertyOrAccessor = 98308,
2142-
ClassMember = 106500
2142+
ClassMember = 106500,
21432143
}
21442144
interface Symbol {
21452145
flags: SymbolFlags;
@@ -2247,7 +2247,7 @@ declare namespace ts {
22472247
Instantiable = 63176704,
22482248
StructuredOrInstantiable = 66846720,
22492249
Narrowable = 133970943,
2250-
NotUnionOrUnit = 67637251
2250+
NotUnionOrUnit = 67637251,
22512251
}
22522252
type DestructuringPattern = BindingPattern | ObjectLiteralExpression | ArrayLiteralExpression;
22532253
interface Type {
@@ -2294,7 +2294,7 @@ declare namespace ts {
22942294
MarkerType = 8192,
22952295
JSLiteral = 16384,
22962296
FreshLiteral = 32768,
2297-
ClassOrInterface = 3
2297+
ClassOrInterface = 3,
22982298
}
22992299
interface ObjectType extends Type {
23002300
objectFlags: ObjectFlags;
@@ -2794,7 +2794,7 @@ declare namespace ts {
27942794
NoHoisting = 2097152,
27952795
HasEndOfDeclarationMarker = 4194304,
27962796
Iterator = 8388608,
2797-
NoAsciiEscaping = 16777216
2797+
NoAsciiEscaping = 16777216,
27982798
}
27992799
interface EmitHelper {
28002800
readonly name: string;

0 commit comments

Comments
 (0)