Skip to content

Commit a039412

Browse files
committed
Update LKG
1 parent 9a39f9c commit a039412

8 files changed

+13
-8
lines changed

lib/lib.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ interface JSON {
987987
/**
988988
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
989989
* @param value A JavaScript value, usually an object or array, to be converted.
990-
* @param replacer An array of strings and numbers that acts as a white list for selecting the object properties that will be stringified.
990+
* @param replacer An array of strings and numbers that acts as a approved list for selecting the object properties that will be stringified.
991991
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
992992
*/
993993
stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;

lib/lib.es5.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ interface JSON {
987987
/**
988988
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
989989
* @param value A JavaScript value, usually an object or array, to be converted.
990-
* @param replacer An array of strings and numbers that acts as a white list for selecting the object properties that will be stringified.
990+
* @param replacer An array of strings and numbers that acts as a approved list for selecting the object properties that will be stringified.
991991
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
992992
*/
993993
stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;

lib/lib.es6.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ interface JSON {
987987
/**
988988
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
989989
* @param value A JavaScript value, usually an object or array, to be converted.
990-
* @param replacer An array of strings and numbers that acts as a white list for selecting the object properties that will be stringified.
990+
* @param replacer An array of strings and numbers that acts as a approved list for selecting the object properties that will be stringified.
991991
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
992992
*/
993993
stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;

lib/tsc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7235,7 +7235,8 @@ var ts;
72357235
}
72367236
function nextTokenIsClassOrFunctionOrAsync() {
72377237
nextToken();
7238-
return token === 73 || token === 87 || token === 118;
7238+
return token === 73 || token === 87 ||
7239+
(token === 118 && lookAhead(nextTokenIsFunctionKeywordOnSameLine));
72397240
}
72407241
function isListElement(parsingContext, inErrorRecovery) {
72417242
var node = currentNode(parsingContext);

lib/tsserver.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8153,7 +8153,8 @@ var ts;
81538153
}
81548154
function nextTokenIsClassOrFunctionOrAsync() {
81558155
nextToken();
8156-
return token === 73 || token === 87 || token === 118;
8156+
return token === 73 || token === 87 ||
8157+
(token === 118 && lookAhead(nextTokenIsFunctionKeywordOnSameLine));
81578158
}
81588159
function isListElement(parsingContext, inErrorRecovery) {
81598160
var node = currentNode(parsingContext);

lib/tsserverlibrary.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8153,7 +8153,8 @@ var ts;
81538153
}
81548154
function nextTokenIsClassOrFunctionOrAsync() {
81558155
nextToken();
8156-
return token === 73 || token === 87 || token === 118;
8156+
return token === 73 || token === 87 ||
8157+
(token === 118 && lookAhead(nextTokenIsFunctionKeywordOnSameLine));
81578158
}
81588159
function isListElement(parsingContext, inErrorRecovery) {
81598160
var node = currentNode(parsingContext);

lib/typescript.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8988,7 +8988,8 @@ var ts;
89888988
}
89898989
function nextTokenIsClassOrFunctionOrAsync() {
89908990
nextToken();
8991-
return token === 73 /* ClassKeyword */ || token === 87 /* FunctionKeyword */ || token === 118 /* AsyncKeyword */;
8991+
return token === 73 /* ClassKeyword */ || token === 87 /* FunctionKeyword */ ||
8992+
(token === 118 /* AsyncKeyword */ && lookAhead(nextTokenIsFunctionKeywordOnSameLine));
89928993
}
89938994
// True if positioned at the start of a list element
89948995
function isListElement(parsingContext, inErrorRecovery) {

lib/typescriptServices.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8988,7 +8988,8 @@ var ts;
89888988
}
89898989
function nextTokenIsClassOrFunctionOrAsync() {
89908990
nextToken();
8991-
return token === 73 /* ClassKeyword */ || token === 87 /* FunctionKeyword */ || token === 118 /* AsyncKeyword */;
8991+
return token === 73 /* ClassKeyword */ || token === 87 /* FunctionKeyword */ ||
8992+
(token === 118 /* AsyncKeyword */ && lookAhead(nextTokenIsFunctionKeywordOnSameLine));
89928993
}
89938994
// True if positioned at the start of a list element
89948995
function isListElement(parsingContext, inErrorRecovery) {

0 commit comments

Comments
 (0)