Skip to content

Commit e4aa4a4

Browse files
committed
Fix an issue where "tsdoc-inline-tag-missing-braces" and "tsdoc-tag-should-not-have-braces" were reported incorrectly
1 parent 1116a0b commit e4aa4a4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tsdoc/src/parser/NodeParser.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,15 +233,15 @@ export class NodeParser {
233233
// The tag is defined, but it is used incorrectly
234234
if (expectingInlineTag) {
235235
this._parserContext.log.addMessageForTokenSequence(
236-
TSDocMessageId.InlineTagMissingBraces,
237-
`The TSDoc tag "${tagName}" is an inline tag; it must be enclosed in "{ }" braces`,
236+
TSDocMessageId.TagShouldNotHaveBraces,
237+
`The TSDoc tag "${tagName}" is not an inline tag; it must not be enclosed in "{ }" braces`,
238238
tokenSequenceForErrorContext,
239239
nodeForErrorContext
240240
);
241241
} else {
242242
this._parserContext.log.addMessageForTokenSequence(
243-
TSDocMessageId.TagShouldNotHaveBraces,
244-
`The TSDoc tag "${tagName}" is not an inline tag; it must not be enclosed in "{ }" braces`,
243+
TSDocMessageId.InlineTagMissingBraces,
244+
`The TSDoc tag "${tagName}" is an inline tag; it must be enclosed in "{ }" braces`,
245245
tokenSequenceForErrorContext,
246246
nodeForErrorContext
247247
);

0 commit comments

Comments
 (0)