Skip to content

Commit

Permalink
Merge pull request #11 from playcanvas/fix-undef-tag
Browse files Browse the repository at this point in the history
Added check incase of missing jsdoc tag
  • Loading branch information
marklundin authored Sep 13, 2024
2 parents 270f1f0 + 12eddf4 commit e82c00f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export class JSDocParser {

const namePos = ts.getLineAndCharacterOfPosition(member.getSourceFile(), member.name.getStart());

const jsdocNode = member.jsDoc[member.jsDoc.length - 1];
const jsdocNode = member.jsDoc && member.jsDoc[member.jsDoc.length - 1];
const jsdocPos = jsdocNode ? ts.getLineAndCharacterOfPosition(member.getSourceFile(), jsdocNode.getStart()) : null;

const data = {
Expand Down

0 comments on commit e82c00f

Please sign in to comment.