Skip to content

Support this.prop = expr; assignments as declarations for ES6 JS classes#7615

Closed
RyanCavanaugh wants to merge 3 commits into
microsoft:masterfrom
RyanCavanaugh:classPropertyInference
Closed

Support this.prop = expr; assignments as declarations for ES6 JS classes#7615
RyanCavanaugh wants to merge 3 commits into
microsoft:masterfrom
RyanCavanaugh:classPropertyInference

Conversation

@RyanCavanaugh
Copy link
Copy Markdown
Member

@billti noticed this didn't actually make it in to the original JSDoc branch as planned

// @Filename: Foo.js
//// class Foo {
//// constructor() {
//// this.bar = 'world';
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.

Can we add a method assignment also for completeness?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done

@billti
Copy link
Copy Markdown
Member

billti commented Mar 21, 2016

👍

@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Jun 17, 2016

@RyanCavanaugh can we close this?

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