Update LKG

This commit is contained in:
Mohamed Hegazy 2016-07-06 16:21:48 -07:00
parent 9a39f9c117
commit a039412373
8 changed files with 13 additions and 8 deletions

2
lib/lib.d.ts vendored
View File

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

2
lib/lib.es5.d.ts vendored
View File

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

2
lib/lib.es6.d.ts vendored
View File

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

View File

@ -7235,7 +7235,8 @@ var ts;
}
function nextTokenIsClassOrFunctionOrAsync() {
nextToken();
return token === 73 || token === 87 || token === 118;
return token === 73 || token === 87 ||
(token === 118 && lookAhead(nextTokenIsFunctionKeywordOnSameLine));
}
function isListElement(parsingContext, inErrorRecovery) {
var node = currentNode(parsingContext);

View File

@ -8153,7 +8153,8 @@ var ts;
}
function nextTokenIsClassOrFunctionOrAsync() {
nextToken();
return token === 73 || token === 87 || token === 118;
return token === 73 || token === 87 ||
(token === 118 && lookAhead(nextTokenIsFunctionKeywordOnSameLine));
}
function isListElement(parsingContext, inErrorRecovery) {
var node = currentNode(parsingContext);

View File

@ -8153,7 +8153,8 @@ var ts;
}
function nextTokenIsClassOrFunctionOrAsync() {
nextToken();
return token === 73 || token === 87 || token === 118;
return token === 73 || token === 87 ||
(token === 118 && lookAhead(nextTokenIsFunctionKeywordOnSameLine));
}
function isListElement(parsingContext, inErrorRecovery) {
var node = currentNode(parsingContext);

View File

@ -8988,7 +8988,8 @@ var ts;
}
function nextTokenIsClassOrFunctionOrAsync() {
nextToken();
return token === 73 /* ClassKeyword */ || token === 87 /* FunctionKeyword */ || token === 118 /* AsyncKeyword */;
return token === 73 /* ClassKeyword */ || token === 87 /* FunctionKeyword */ ||
(token === 118 /* AsyncKeyword */ && lookAhead(nextTokenIsFunctionKeywordOnSameLine));
}
// True if positioned at the start of a list element
function isListElement(parsingContext, inErrorRecovery) {

View File

@ -8988,7 +8988,8 @@ var ts;
}
function nextTokenIsClassOrFunctionOrAsync() {
nextToken();
return token === 73 /* ClassKeyword */ || token === 87 /* FunctionKeyword */ || token === 118 /* AsyncKeyword */;
return token === 73 /* ClassKeyword */ || token === 87 /* FunctionKeyword */ ||
(token === 118 /* AsyncKeyword */ && lookAhead(nextTokenIsFunctionKeywordOnSameLine));
}
// True if positioned at the start of a list element
function isListElement(parsingContext, inErrorRecovery) {