File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -24757,9 +24757,17 @@ namespace ts {
24757
24757
return;
24758
24758
}
24759
24759
if (!containsArgumentsReference(decl)) {
24760
- error(node.name,
24761
- Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,
24762
- idText(node.name.kind === SyntaxKind.QualifiedName ? node.name.right : node.name));
24760
+ if (isQualifiedName(node.name)) {
24761
+ error(node.name,
24762
+ Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,
24763
+ entityNameToString(node.name),
24764
+ entityNameToString(node.name.left));
24765
+ }
24766
+ else {
24767
+ error(node.name,
24768
+ Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,
24769
+ idText(node.name));
24770
+ }
24763
24771
}
24764
24772
else if (findLast(getJSDocTags(decl), isJSDocParameterTag) === node &&
24765
24773
node.typeExpression && node.typeExpression.type &&
You can’t perform that action at this time.
0 commit comments