Skip to content

Commit 37d2b2b

Browse files
committed
Update LKG
1 parent eb840b8 commit 37d2b2b

File tree

5 files changed

+17
-12
lines changed

5 files changed

+17
-12
lines changed

lib/tsc.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24064,14 +24064,15 @@ var ts;
2406424064
}
2406524065
function symbolToParameterDeclaration(parameterSymbol, context, preserveModifierFlags) {
2406624066
var parameterDeclaration = ts.getDeclarationOfKind(parameterSymbol, 148);
24067-
ts.Debug.assert(!!parameterDeclaration || isTransientSymbol(parameterSymbol) && !!parameterSymbol.isRestParameter);
24067+
ts.Debug.assert(!!parameterDeclaration || isTransientSymbol(parameterSymbol));
2406824068
var parameterType = getTypeOfSymbol(parameterSymbol);
2406924069
if (parameterDeclaration && isRequiredInitializedParameter(parameterDeclaration)) {
2407024070
parameterType = getOptionalType(parameterType);
2407124071
}
2407224072
var parameterTypeNode = typeToTypeNodeHelper(parameterType, context);
2407324073
var modifiers = !(context.flags & 8192) && preserveModifierFlags && parameterDeclaration && parameterDeclaration.modifiers && parameterDeclaration.modifiers.map(ts.getSynthesizedClone);
24074-
var dotDotDotToken = !parameterDeclaration || ts.isRestParameter(parameterDeclaration) ? ts.createToken(24) : undefined;
24074+
var isRest = parameterDeclaration ? ts.isRestParameter(parameterDeclaration) : parameterSymbol.isRestParameter;
24075+
var dotDotDotToken = isRest ? ts.createToken(24) : undefined;
2407524076
var name = parameterDeclaration
2407624077
? parameterDeclaration.name ?
2407724078
parameterDeclaration.name.kind === 71 ?

lib/tsserver.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25501,14 +25501,15 @@ var ts;
2550125501
}
2550225502
function symbolToParameterDeclaration(parameterSymbol, context, preserveModifierFlags) {
2550325503
var parameterDeclaration = ts.getDeclarationOfKind(parameterSymbol, 148);
25504-
ts.Debug.assert(!!parameterDeclaration || isTransientSymbol(parameterSymbol) && !!parameterSymbol.isRestParameter);
25504+
ts.Debug.assert(!!parameterDeclaration || isTransientSymbol(parameterSymbol));
2550525505
var parameterType = getTypeOfSymbol(parameterSymbol);
2550625506
if (parameterDeclaration && isRequiredInitializedParameter(parameterDeclaration)) {
2550725507
parameterType = getOptionalType(parameterType);
2550825508
}
2550925509
var parameterTypeNode = typeToTypeNodeHelper(parameterType, context);
2551025510
var modifiers = !(context.flags & 8192) && preserveModifierFlags && parameterDeclaration && parameterDeclaration.modifiers && parameterDeclaration.modifiers.map(ts.getSynthesizedClone);
25511-
var dotDotDotToken = !parameterDeclaration || ts.isRestParameter(parameterDeclaration) ? ts.createToken(24) : undefined;
25511+
var isRest = parameterDeclaration ? ts.isRestParameter(parameterDeclaration) : parameterSymbol.isRestParameter;
25512+
var dotDotDotToken = isRest ? ts.createToken(24) : undefined;
2551225513
var name = parameterDeclaration
2551325514
? parameterDeclaration.name ?
2551425515
parameterDeclaration.name.kind === 71 ?
@@ -94560,7 +94561,7 @@ var ts;
9456094561
return { configFileName: configFileName, configFileErrors: configFileErrors };
9456194562
};
9456294563
ProjectService.prototype.telemetryOnOpenFile = function (scriptInfo) {
94563-
if (!this.eventHandler || !scriptInfo.isJavaScript() || !ts.addToSeen(this.allJsFilesForOpenFileTelemetry, scriptInfo.path)) {
94564+
if (this.syntaxOnly || !this.eventHandler || !scriptInfo.isJavaScript() || !ts.addToSeen(this.allJsFilesForOpenFileTelemetry, scriptInfo.path)) {
9456494565
return;
9456594566
}
9456694567
var info = { checkJs: !!scriptInfo.getDefaultProject().getSourceFile(scriptInfo.path).checkJsDirective };

lib/tsserverlibrary.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29632,14 +29632,15 @@ var ts;
2963229632
}
2963329633
function symbolToParameterDeclaration(parameterSymbol, context, preserveModifierFlags) {
2963429634
var parameterDeclaration = ts.getDeclarationOfKind(parameterSymbol, 148 /* Parameter */);
29635-
ts.Debug.assert(!!parameterDeclaration || isTransientSymbol(parameterSymbol) && !!parameterSymbol.isRestParameter);
29635+
ts.Debug.assert(!!parameterDeclaration || isTransientSymbol(parameterSymbol));
2963629636
var parameterType = getTypeOfSymbol(parameterSymbol);
2963729637
if (parameterDeclaration && isRequiredInitializedParameter(parameterDeclaration)) {
2963829638
parameterType = getOptionalType(parameterType);
2963929639
}
2964029640
var parameterTypeNode = typeToTypeNodeHelper(parameterType, context);
2964129641
var modifiers = !(context.flags & 8192 /* OmitParameterModifiers */) && preserveModifierFlags && parameterDeclaration && parameterDeclaration.modifiers && parameterDeclaration.modifiers.map(ts.getSynthesizedClone);
29642-
var dotDotDotToken = !parameterDeclaration || ts.isRestParameter(parameterDeclaration) ? ts.createToken(24 /* DotDotDotToken */) : undefined;
29642+
var isRest = parameterDeclaration ? ts.isRestParameter(parameterDeclaration) : parameterSymbol.isRestParameter;
29643+
var dotDotDotToken = isRest ? ts.createToken(24 /* DotDotDotToken */) : undefined;
2964329644
var name = parameterDeclaration
2964429645
? parameterDeclaration.name ?
2964529646
parameterDeclaration.name.kind === 71 /* Identifier */ ?
@@ -112961,7 +112962,7 @@ var ts;
112961112962
return { configFileName: configFileName, configFileErrors: configFileErrors };
112962112963
};
112963112964
ProjectService.prototype.telemetryOnOpenFile = function (scriptInfo) {
112964-
if (!this.eventHandler || !scriptInfo.isJavaScript() || !ts.addToSeen(this.allJsFilesForOpenFileTelemetry, scriptInfo.path)) {
112965+
if (this.syntaxOnly || !this.eventHandler || !scriptInfo.isJavaScript() || !ts.addToSeen(this.allJsFilesForOpenFileTelemetry, scriptInfo.path)) {
112965112966
return;
112966112967
}
112967112968
var info = { checkJs: !!scriptInfo.getDefaultProject().getSourceFile(scriptInfo.path).checkJsDirective };

lib/typescript.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29632,14 +29632,15 @@ var ts;
2963229632
}
2963329633
function symbolToParameterDeclaration(parameterSymbol, context, preserveModifierFlags) {
2963429634
var parameterDeclaration = ts.getDeclarationOfKind(parameterSymbol, 148 /* Parameter */);
29635-
ts.Debug.assert(!!parameterDeclaration || isTransientSymbol(parameterSymbol) && !!parameterSymbol.isRestParameter);
29635+
ts.Debug.assert(!!parameterDeclaration || isTransientSymbol(parameterSymbol));
2963629636
var parameterType = getTypeOfSymbol(parameterSymbol);
2963729637
if (parameterDeclaration && isRequiredInitializedParameter(parameterDeclaration)) {
2963829638
parameterType = getOptionalType(parameterType);
2963929639
}
2964029640
var parameterTypeNode = typeToTypeNodeHelper(parameterType, context);
2964129641
var modifiers = !(context.flags & 8192 /* OmitParameterModifiers */) && preserveModifierFlags && parameterDeclaration && parameterDeclaration.modifiers && parameterDeclaration.modifiers.map(ts.getSynthesizedClone);
29642-
var dotDotDotToken = !parameterDeclaration || ts.isRestParameter(parameterDeclaration) ? ts.createToken(24 /* DotDotDotToken */) : undefined;
29642+
var isRest = parameterDeclaration ? ts.isRestParameter(parameterDeclaration) : parameterSymbol.isRestParameter;
29643+
var dotDotDotToken = isRest ? ts.createToken(24 /* DotDotDotToken */) : undefined;
2964329644
var name = parameterDeclaration
2964429645
? parameterDeclaration.name ?
2964529646
parameterDeclaration.name.kind === 71 /* Identifier */ ?

lib/typescriptServices.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29632,14 +29632,15 @@ var ts;
2963229632
}
2963329633
function symbolToParameterDeclaration(parameterSymbol, context, preserveModifierFlags) {
2963429634
var parameterDeclaration = ts.getDeclarationOfKind(parameterSymbol, 148 /* Parameter */);
29635-
ts.Debug.assert(!!parameterDeclaration || isTransientSymbol(parameterSymbol) && !!parameterSymbol.isRestParameter);
29635+
ts.Debug.assert(!!parameterDeclaration || isTransientSymbol(parameterSymbol));
2963629636
var parameterType = getTypeOfSymbol(parameterSymbol);
2963729637
if (parameterDeclaration && isRequiredInitializedParameter(parameterDeclaration)) {
2963829638
parameterType = getOptionalType(parameterType);
2963929639
}
2964029640
var parameterTypeNode = typeToTypeNodeHelper(parameterType, context);
2964129641
var modifiers = !(context.flags & 8192 /* OmitParameterModifiers */) && preserveModifierFlags && parameterDeclaration && parameterDeclaration.modifiers && parameterDeclaration.modifiers.map(ts.getSynthesizedClone);
29642-
var dotDotDotToken = !parameterDeclaration || ts.isRestParameter(parameterDeclaration) ? ts.createToken(24 /* DotDotDotToken */) : undefined;
29642+
var isRest = parameterDeclaration ? ts.isRestParameter(parameterDeclaration) : parameterSymbol.isRestParameter;
29643+
var dotDotDotToken = isRest ? ts.createToken(24 /* DotDotDotToken */) : undefined;
2964329644
var name = parameterDeclaration
2964429645
? parameterDeclaration.name ?
2964529646
parameterDeclaration.name.kind === 71 /* Identifier */ ?

0 commit comments

Comments
 (0)