Skip to content

Recognize object literal method JSDoc comments#6870

Merged
RyanCavanaugh merged 2 commits into
microsoft:masterfrom
RyanCavanaugh:fix6825
Feb 4, 2016
Merged

Recognize object literal method JSDoc comments#6870
RyanCavanaugh merged 2 commits into
microsoft:masterfrom
RyanCavanaugh:fix6825

Conversation

@RyanCavanaugh
Copy link
Copy Markdown
Member

Fixes #6825

Comment thread src/compiler/utilities.ts Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

parent gets used quite a lot here and above - consider declaring a parent constant.

Comment thread src/compiler/parser.ts
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I notice this function returns early if tryParseAccessorDeclaration is successful (or via parseMethodDeclaration@3943). Do we handle those cases, such as getters/setters? (Good tests to add also).

@billti
Copy link
Copy Markdown
Member

billti commented Feb 3, 2016

Minor comment with additional use case to check (which could be separate issue, as lower pri), else 👍

RyanCavanaugh added a commit that referenced this pull request Feb 4, 2016
Recognize object literal method JSDoc comments
@RyanCavanaugh RyanCavanaugh merged commit 6f261f5 into microsoft:master Feb 4, 2016
@RyanCavanaugh RyanCavanaugh deleted the fix6825 branch February 4, 2016 18:17
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants