Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added check incase of missing jsdoc tag #11

Merged
merged 1 commit into from
Sep 13, 2024
Merged

Added check incase of missing jsdoc tag #11

merged 1 commit into from
Sep 13, 2024

Conversation

marklundin
Copy link
Member

Added check for missing jsdoc tag. Fixes #10

@@ -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];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could be
const jsdocNode = member.jsDoc?.[member.jsDoc.length - 1];

@marklundin marklundin merged commit e82c00f into main Sep 13, 2024
1 check passed
@marklundin marklundin deleted the fix-undef-tag branch September 13, 2024 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Undefined access when editing script attributes
2 participants