From 88f80c75e1a4ab6aaec605aa4ec6281b87871ff0 Mon Sep 17 00:00:00 2001 From: TypeScript Bot Date: Tue, 31 Oct 2023 22:43:20 +0000 Subject: [PATCH] Update LKG --- lib/tsc.js | 9 ++------- lib/tsserver.js | 9 ++------- lib/typescript.js | 9 ++------- lib/typingsInstaller.js | 9 ++------- 4 files changed, 8 insertions(+), 28 deletions(-) diff --git a/lib/tsc.js b/lib/tsc.js index 4e2739286dbef..f82b0a23b018e 100644 --- a/lib/tsc.js +++ b/lib/tsc.js @@ -30689,7 +30689,8 @@ var Parser; parseExpected(21 /* OpenParenToken */); let initializer; if (token() !== 27 /* SemicolonToken */) { - if (token() === 115 /* VarKeyword */ || token() === 121 /* LetKeyword */ || token() === 87 /* ConstKeyword */ || token() === 160 /* UsingKeyword */ && lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLineDisallowOf) || token() === 135 /* AwaitKeyword */ && lookAhead(nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLineDisallowOf)) { + if (token() === 115 /* VarKeyword */ || token() === 121 /* LetKeyword */ || token() === 87 /* ConstKeyword */ || token() === 160 /* UsingKeyword */ && lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLineDisallowOf) || // this one is meant to allow of + token() === 135 /* AwaitKeyword */ && lookAhead(nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine)) { initializer = parseVariableDeclarationList( /*inForStatementInitializer*/ true @@ -31010,12 +31011,6 @@ var Parser; function isUsingDeclaration() { return lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine); } - function nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLineDisallowOf() { - return nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine( - /*disallowOf*/ - true - ); - } function nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine(disallowOf) { if (nextToken() === 160 /* UsingKeyword */) { return nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine(disallowOf); diff --git a/lib/tsserver.js b/lib/tsserver.js index af55fa4ff8530..c4e9b0b400a4e 100644 --- a/lib/tsserver.js +++ b/lib/tsserver.js @@ -35093,7 +35093,8 @@ var Parser; parseExpected(21 /* OpenParenToken */); let initializer; if (token() !== 27 /* SemicolonToken */) { - if (token() === 115 /* VarKeyword */ || token() === 121 /* LetKeyword */ || token() === 87 /* ConstKeyword */ || token() === 160 /* UsingKeyword */ && lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLineDisallowOf) || token() === 135 /* AwaitKeyword */ && lookAhead(nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLineDisallowOf)) { + if (token() === 115 /* VarKeyword */ || token() === 121 /* LetKeyword */ || token() === 87 /* ConstKeyword */ || token() === 160 /* UsingKeyword */ && lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLineDisallowOf) || // this one is meant to allow of + token() === 135 /* AwaitKeyword */ && lookAhead(nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine)) { initializer = parseVariableDeclarationList( /*inForStatementInitializer*/ true @@ -35414,12 +35415,6 @@ var Parser; function isUsingDeclaration() { return lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine); } - function nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLineDisallowOf() { - return nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine( - /*disallowOf*/ - true - ); - } function nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine(disallowOf) { if (nextToken() === 160 /* UsingKeyword */) { return nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine(disallowOf); diff --git a/lib/typescript.js b/lib/typescript.js index 1a51e84326f63..7805829449452 100644 --- a/lib/typescript.js +++ b/lib/typescript.js @@ -33165,7 +33165,8 @@ ${lanes.join("\n")} parseExpected(21 /* OpenParenToken */); let initializer; if (token() !== 27 /* SemicolonToken */) { - if (token() === 115 /* VarKeyword */ || token() === 121 /* LetKeyword */ || token() === 87 /* ConstKeyword */ || token() === 160 /* UsingKeyword */ && lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLineDisallowOf) || token() === 135 /* AwaitKeyword */ && lookAhead(nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLineDisallowOf)) { + if (token() === 115 /* VarKeyword */ || token() === 121 /* LetKeyword */ || token() === 87 /* ConstKeyword */ || token() === 160 /* UsingKeyword */ && lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLineDisallowOf) || // this one is meant to allow of + token() === 135 /* AwaitKeyword */ && lookAhead(nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine)) { initializer = parseVariableDeclarationList( /*inForStatementInitializer*/ true @@ -33486,12 +33487,6 @@ ${lanes.join("\n")} function isUsingDeclaration() { return lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine); } - function nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLineDisallowOf() { - return nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine( - /*disallowOf*/ - true - ); - } function nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine(disallowOf) { if (nextToken() === 160 /* UsingKeyword */) { return nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine(disallowOf); diff --git a/lib/typingsInstaller.js b/lib/typingsInstaller.js index 31f163b33b60c..6dd57dedd9009 100644 --- a/lib/typingsInstaller.js +++ b/lib/typingsInstaller.js @@ -22502,7 +22502,8 @@ var Parser; parseExpected(21 /* OpenParenToken */); let initializer; if (token() !== 27 /* SemicolonToken */) { - if (token() === 115 /* VarKeyword */ || token() === 121 /* LetKeyword */ || token() === 87 /* ConstKeyword */ || token() === 160 /* UsingKeyword */ && lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLineDisallowOf) || token() === 135 /* AwaitKeyword */ && lookAhead(nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLineDisallowOf)) { + if (token() === 115 /* VarKeyword */ || token() === 121 /* LetKeyword */ || token() === 87 /* ConstKeyword */ || token() === 160 /* UsingKeyword */ && lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLineDisallowOf) || // this one is meant to allow of + token() === 135 /* AwaitKeyword */ && lookAhead(nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine)) { initializer = parseVariableDeclarationList( /*inForStatementInitializer*/ true @@ -22823,12 +22824,6 @@ var Parser; function isUsingDeclaration() { return lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine); } - function nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLineDisallowOf() { - return nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine( - /*disallowOf*/ - true - ); - } function nextTokenIsUsingKeywordThenBindingIdentifierOrStartOfObjectDestructuringOnSameLine(disallowOf) { if (nextToken() === 160 /* UsingKeyword */) { return nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine(disallowOf);