diff --git a/api-demo/src/advancedDemo.ts b/api-demo/src/advancedDemo.ts index c3c33f3..5218c32 100644 --- a/api-demo/src/advancedDemo.ts +++ b/api-demo/src/advancedDemo.ts @@ -185,8 +185,9 @@ function parseTSDoc(foundComment: IFoundComment): void { // Since we have the compiler's analysis, use it to calculate the line/column information, // since this is currently faster than TSDoc's TextRange.getLocation() lookup. const location: ts.LineAndCharacter = sourceFile.getLineAndCharacterOfPosition(message.textRange.pos); - const formattedMessage: string = - `${sourceFile.fileName}(${location.line + 1},${location.character + 1}):` + ` [TSDoc] ${message}`; + const formattedMessage: string = `${sourceFile.fileName}(${location.line + 1},${ + location.character + 1 + }): [TSDoc] ${message}`; console.log(formattedMessage); } } diff --git a/tsdoc/src/nodes/DocBlockTag.ts b/tsdoc/src/nodes/DocBlockTag.ts index f49f2a4..544f9f0 100644 --- a/tsdoc/src/nodes/DocBlockTag.ts +++ b/tsdoc/src/nodes/DocBlockTag.ts @@ -75,7 +75,7 @@ export class DocBlockTag extends DocNode { public getTokenSequence(): TokenSequence { if (!this._tagNameExcerpt) { throw new Error( - 'DocBlockTag.getTokenSequence() failed because this object did not' + ' originate from a parsed input' + 'DocBlockTag.getTokenSequence() failed because this object did not originate from a parsed input' ); } return this._tagNameExcerpt.content;