We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 392cd61 commit 35cfcffCopy full SHA for 35cfcff
src/compiler/checker.ts
@@ -16382,8 +16382,7 @@ namespace ts {
16382
}
16383
16384
if (isPotentiallyUncalledDecorator(node, callSignatures)) {
16385
- const printer = createPrinter({ removeComments: true });
16386
- const nodeStr = printer.printNode(EmitHint.Expression, node.expression, getSourceFileOfNode(node));
+ const nodeStr = getTextOfNode(node.expression, /*includeTrivia*/ false);
16387
error(node, Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0, nodeStr);
16388
return resolveErrorCall(node);
16389
0 commit comments