Skip to content

Commit c476a08

Browse files
committed
Update LKG
1 parent 9434a81 commit c476a08

9 files changed

+492
-434
lines changed

lib/tsc.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11088,7 +11088,8 @@ var ts;
1108811088
return token() === 24 ||
1108911089
isIdentifierOrPattern() ||
1109011090
ts.isModifierKind(token()) ||
11091-
token() === 57 || isStartOfType();
11091+
token() === 57 ||
11092+
isStartOfType(true);
1109211093
}
1109311094
function parseParameter() {
1109411095
var node = createNode(146);
@@ -11427,7 +11428,7 @@ var ts;
1142711428
return parseTypeReference();
1142811429
}
1142911430
}
11430-
function isStartOfType() {
11431+
function isStartOfType(inStartOfParameter) {
1143111432
switch (token()) {
1143211433
case 119:
1143311434
case 136:
@@ -11454,9 +11455,9 @@ var ts;
1145411455
case 39:
1145511456
return true;
1145611457
case 38:
11457-
return lookAhead(nextTokenIsNumericLiteral);
11458+
return !inStartOfParameter && lookAhead(nextTokenIsNumericLiteral);
1145811459
case 19:
11459-
return lookAhead(isStartOfParenthesizedOrFunctionType);
11460+
return !inStartOfParameter && lookAhead(isStartOfParenthesizedOrFunctionType);
1146011461
default:
1146111462
return isIdentifier();
1146211463
}

lib/tsserver.js

Lines changed: 114 additions & 105 deletions
Large diffs are not rendered by default.

lib/tsserverlibrary.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3283,8 +3283,8 @@ declare namespace ts {
32833283
};
32843284
type RefactorEditInfo = {
32853285
edits: FileTextChanges[];
3286-
renameFilename?: string;
3287-
renameLocation?: number;
3286+
renameFilename: string | undefined;
3287+
renameLocation: number | undefined;
32883288
};
32893289
interface TextInsertion {
32903290
newText: string;

lib/tsserverlibrary.js

Lines changed: 114 additions & 105 deletions
Large diffs are not rendered by default.

lib/typescript.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3935,8 +3935,8 @@ declare namespace ts {
39353935
*/
39363936
type RefactorEditInfo = {
39373937
edits: FileTextChanges[];
3938-
renameFilename?: string;
3939-
renameLocation?: number;
3938+
renameFilename: string | undefined;
3939+
renameLocation: number | undefined;
39403940
};
39413941
interface TextInsertion {
39423942
newText: string;

lib/typescript.js

Lines changed: 124 additions & 105 deletions
Large diffs are not rendered by default.

lib/typescriptServices.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3935,8 +3935,8 @@ declare namespace ts {
39353935
*/
39363936
type RefactorEditInfo = {
39373937
edits: FileTextChanges[];
3938-
renameFilename?: string;
3939-
renameLocation?: number;
3938+
renameFilename: string | undefined;
3939+
renameLocation: number | undefined;
39403940
};
39413941
interface TextInsertion {
39423942
newText: string;

lib/typescriptServices.js

Lines changed: 124 additions & 105 deletions
Large diffs are not rendered by default.

lib/typingsInstaller.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11098,7 +11098,8 @@ var ts;
1109811098
return token() === 24 ||
1109911099
isIdentifierOrPattern() ||
1110011100
ts.isModifierKind(token()) ||
11101-
token() === 57 || isStartOfType();
11101+
token() === 57 ||
11102+
isStartOfType(true);
1110211103
}
1110311104
function parseParameter() {
1110411105
var node = createNode(146);
@@ -11437,7 +11438,7 @@ var ts;
1143711438
return parseTypeReference();
1143811439
}
1143911440
}
11440-
function isStartOfType() {
11441+
function isStartOfType(inStartOfParameter) {
1144111442
switch (token()) {
1144211443
case 119:
1144311444
case 136:
@@ -11464,9 +11465,9 @@ var ts;
1146411465
case 39:
1146511466
return true;
1146611467
case 38:
11467-
return lookAhead(nextTokenIsNumericLiteral);
11468+
return !inStartOfParameter && lookAhead(nextTokenIsNumericLiteral);
1146811469
case 19:
11469-
return lookAhead(isStartOfParenthesizedOrFunctionType);
11470+
return !inStartOfParameter && lookAhead(isStartOfParenthesizedOrFunctionType);
1147011471
default:
1147111472
return isIdentifier();
1147211473
}

0 commit comments

Comments
 (0)