From bb89abd7fdaa4fb97c48532c5e50d8ae942b47cd Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Thu, 22 Mar 2018 12:59:18 -0700 Subject: [PATCH] Update LKG. --- lib/tsc.js | 2 +- lib/tsserver.js | 2 +- lib/tsserverlibrary.js | 2 +- lib/typescript.js | 2 +- lib/typescriptServices.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/tsc.js b/lib/tsc.js index 3ac2732a3a7..f5d85ee65da 100644 --- a/lib/tsc.js +++ b/lib/tsc.js @@ -16738,7 +16738,7 @@ var ts; case 280: return (ts.isJSDocConstructSignature(node) ? "__new" : "__call"); case 148: - ts.Debug.assert(node.parent.kind === 280); + ts.Debug.assert(node.parent.kind === 280, "Impossible parameter parent kind", function () { return "parent is: " + (ts.SyntaxKind ? ts.SyntaxKind[node.parent.kind] : node.parent.kind) + ", expected JSDocFunctionType"; }); var functionType = node.parent; var index = functionType.parameters.indexOf(node); return "arg" + index; diff --git a/lib/tsserver.js b/lib/tsserver.js index 3487eea899a..ff68e8cc867 100644 --- a/lib/tsserver.js +++ b/lib/tsserver.js @@ -18952,7 +18952,7 @@ var ts; case 280: return (ts.isJSDocConstructSignature(node) ? "__new" : "__call"); case 148: - ts.Debug.assert(node.parent.kind === 280); + ts.Debug.assert(node.parent.kind === 280, "Impossible parameter parent kind", function () { return "parent is: " + (ts.SyntaxKind ? ts.SyntaxKind[node.parent.kind] : node.parent.kind) + ", expected JSDocFunctionType"; }); var functionType = node.parent; var index = functionType.parameters.indexOf(node); return "arg" + index; diff --git a/lib/tsserverlibrary.js b/lib/tsserverlibrary.js index 8e80f66642e..e799becc910 100644 --- a/lib/tsserverlibrary.js +++ b/lib/tsserverlibrary.js @@ -24172,7 +24172,7 @@ var ts; case 148 /* Parameter */: // Parameters with names are handled at the top of this function. Parameters // without names can only come from JSDocFunctionTypes. - ts.Debug.assert(node.parent.kind === 280 /* JSDocFunctionType */); + ts.Debug.assert(node.parent.kind === 280 /* JSDocFunctionType */, "Impossible parameter parent kind", function () { return "parent is: " + (ts.SyntaxKind ? ts.SyntaxKind[node.parent.kind] : node.parent.kind) + ", expected JSDocFunctionType"; }); var functionType = node.parent; var index = functionType.parameters.indexOf(node); return "arg" + index; diff --git a/lib/typescript.js b/lib/typescript.js index 34735735e8c..827452e5715 100644 --- a/lib/typescript.js +++ b/lib/typescript.js @@ -21053,7 +21053,7 @@ var ts; case 148 /* Parameter */: // Parameters with names are handled at the top of this function. Parameters // without names can only come from JSDocFunctionTypes. - ts.Debug.assert(node.parent.kind === 280 /* JSDocFunctionType */); + ts.Debug.assert(node.parent.kind === 280 /* JSDocFunctionType */, "Impossible parameter parent kind", function () { return "parent is: " + (ts.SyntaxKind ? ts.SyntaxKind[node.parent.kind] : node.parent.kind) + ", expected JSDocFunctionType"; }); var functionType = node.parent; var index = functionType.parameters.indexOf(node); return "arg" + index; diff --git a/lib/typescriptServices.js b/lib/typescriptServices.js index 34735735e8c..827452e5715 100644 --- a/lib/typescriptServices.js +++ b/lib/typescriptServices.js @@ -21053,7 +21053,7 @@ var ts; case 148 /* Parameter */: // Parameters with names are handled at the top of this function. Parameters // without names can only come from JSDocFunctionTypes. - ts.Debug.assert(node.parent.kind === 280 /* JSDocFunctionType */); + ts.Debug.assert(node.parent.kind === 280 /* JSDocFunctionType */, "Impossible parameter parent kind", function () { return "parent is: " + (ts.SyntaxKind ? ts.SyntaxKind[node.parent.kind] : node.parent.kind) + ", expected JSDocFunctionType"; }); var functionType = node.parent; var index = functionType.parameters.indexOf(node); return "arg" + index;