Skip to content

Commit

Permalink
Update LKG for 3.8.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRosenwasser committed Feb 14, 2020
1 parent 203ed3e commit 870cd7b
Show file tree
Hide file tree
Showing 8 changed files with 566 additions and 444 deletions.
10 changes: 10 additions & 0 deletions lib/protocol.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,16 @@ declare namespace ts.server.protocol {
* Contains extra information that plugin can include to be passed on
*/
metadata?: unknown;
/**
* Exposes information about the performance of this request-response pair.
*/
performanceData?: PerformanceData;
}
interface PerformanceData {
/**
* Time spent updating the program graph, in milliseconds.
*/
updateGraphDurationMs?: number;
}
/**
* Arguments for FileRequest messages.
Expand Down
17 changes: 9 additions & 8 deletions lib/tsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
var ts;
(function (ts) {
ts.versionMajorMinor = "3.8";
ts.version = ts.versionMajorMinor + ".1-rc";
ts.version = ts.versionMajorMinor + ".2";
function tryGetNativeMap() {
return typeof Map !== "undefined" && "entries" in Map.prototype ? Map : undefined;
}
Expand Down Expand Up @@ -19385,17 +19385,18 @@ var ts;
}
return finishNode(node);
}
function parseNamespaceExport() {
var node = createNode(262);
function parseNamespaceExport(pos) {
var node = createNode(262, pos);
node.name = parseIdentifier();
return finishNode(node);
}
function parseExportDeclaration(node) {
node.kind = 260;
node.isTypeOnly = parseOptional(145);
var namespaceExportPos = scanner.getStartPos();
if (parseOptional(41)) {
if (parseOptional(123)) {
node.exportClause = parseNamespaceExport();
node.exportClause = parseNamespaceExport(namespaceExportPos);
}
parseExpected(149);
node.moduleSpecifier = parseModuleSpecifier();
Expand Down Expand Up @@ -40366,7 +40367,7 @@ var ts;
}
}
if (source.flags & (524288 | 2097152) && target.flags & 1048576) {
var objectOnlyTarget = extractTypesOfKind(target, 524288);
var objectOnlyTarget = extractTypesOfKind(target, 524288 | 2097152 | 33554432);
if (objectOnlyTarget.flags & 1048576) {
var result_4 = typeRelatedToDiscriminatedType(source, objectOnlyTarget);
if (result_4) {
Expand Down Expand Up @@ -40423,7 +40424,7 @@ var ts;
return 0;
}
function typeRelatedToDiscriminatedType(source, target) {
var sourceProperties = getPropertiesOfObjectType(source);
var sourceProperties = getPropertiesOfType(source);
var sourcePropertiesFiltered = findDiscriminantProperties(sourceProperties, target);
if (!sourcePropertiesFiltered)
return 0;
Expand Down Expand Up @@ -40453,7 +40454,7 @@ var ts;
var type = _a[_i];
var _loop_13 = function (i) {
var sourceProperty = sourcePropertiesFiltered[i];
var targetProperty = getPropertyOfObjectType(type, sourceProperty.escapedName);
var targetProperty = getPropertyOfType(type, sourceProperty.escapedName);
if (!targetProperty)
return "continue-outer";
if (sourceProperty === targetProperty)
Expand Down Expand Up @@ -50871,7 +50872,7 @@ var ts;
getTypeFromTypeNode(node);
}
function isPrivateWithinAmbient(node) {
return ts.hasModifier(node, 8) && !!(node.flags & 8388608);
return (ts.hasModifier(node, 8) || ts.isPrivateIdentifierPropertyDeclaration(node)) && !!(node.flags & 8388608);
}
function getEffectiveDeclarationFlags(n, flagsToCheck) {
var flags = ts.getCombinedModifierFlags(n);
Expand Down
240 changes: 133 additions & 107 deletions lib/tsserver.js

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions lib/tsserverlibrary.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6253,6 +6253,16 @@ declare namespace ts.server.protocol {
* Contains extra information that plugin can include to be passed on
*/
metadata?: unknown;
/**
* Exposes information about the performance of this request-response pair.
*/
performanceData?: PerformanceData;
}
interface PerformanceData {
/**
* Time spent updating the program graph, in milliseconds.
*/
updateGraphDurationMs?: number;
}
/**
* Arguments for FileRequest messages.
Expand Down
Loading

0 comments on commit 870cd7b

Please sign in to comment.