@@ -80162,8 +80162,8 @@ var ts;
8016280162 error(member, ts.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1, baseClassName, symbolToString(suggestion)) :
8016380163 error(member, ts.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0, baseClassName);
8016480164 }
80165- else if (prop && (baseProp === null || baseProp === void 0 ? void 0 : baseProp.valueDeclaration ) && compilerOptions.noImplicitOverride && !nodeInAmbientContext) {
80166- var baseHasAbstract = ts.hasAbstractModifier (baseProp.valueDeclaration );
80165+ else if (prop && (baseProp === null || baseProp === void 0 ? void 0 : baseProp.declarations ) && compilerOptions.noImplicitOverride && !nodeInAmbientContext) {
80166+ var baseHasAbstract = ts.some (baseProp.declarations, function (d) { return ts.hasAbstractModifier(d); } );
8016780167 if (hasOverride) {
8016880168 return;
8016980169 }
@@ -137143,7 +137143,18 @@ var ts;
137143137143 return ts.some(ranges, function (range) { return regex.test(sourceFileText.substring(range.pos, range.end)); });
137144137144 }
137145137145 function isHintableExpression(node) {
137146- return ts.isLiteralExpression(node) || ts.isBooleanLiteral(node) || ts.isArrowFunction(node) || ts.isFunctionExpression(node) || ts.isObjectLiteralExpression(node) || ts.isArrayLiteralExpression(node);
137146+ switch (node.kind) {
137147+ case 217 /* PrefixUnaryExpression */:
137148+ return ts.isLiteralExpression(node.operand);
137149+ case 110 /* TrueKeyword */:
137150+ case 95 /* FalseKeyword */:
137151+ case 212 /* ArrowFunction */:
137152+ case 211 /* FunctionExpression */:
137153+ case 203 /* ObjectLiteralExpression */:
137154+ case 202 /* ArrayLiteralExpression */:
137155+ return true;
137156+ }
137157+ return ts.isLiteralExpression(node);
137147137158 }
137148137159 function visitFunctionDeclarationLikeForReturnType(decl) {
137149137160 if (ts.isArrowFunction(decl)) {
@@ -167881,9 +167892,9 @@ var ts;
167881167892 });
167882167893 };
167883167894 Session.prototype.provideInlayHints = function (args) {
167884- var _a = this.getFileAndLanguageServiceForSyntacticOperation (args), file = _a.file, languageService = _a.languageService ;
167895+ var _a = this.getFileAndProject (args), file = _a.file, project = _a.project ;
167885167896 var scriptInfo = this.projectService.getScriptInfoForNormalizedPath(file);
167886- var hints = languageService .provideInlayHints(file, args, this.getPreferences(file));
167897+ var hints = project.getLanguageService() .provideInlayHints(file, args, this.getPreferences(file));
167887167898 return hints.map(function (hint) { return (__assign(__assign({}, hint), { position: scriptInfo.positionToLineOffset(hint.position) })); });
167888167899 };
167889167900 Session.prototype.setCompilerOptionsForInferredProjects = function (args) {
0 commit comments