properties initialized in the constructor don't get their JSDOC tags read
KonnorRogers opened this issue · 1 comments
KonnorRogers commented
Checklist
- Did you run the analyzer with the
--dev
flag to get more information? - Did you create a minimal reproduction in the playground?
Completing the items above will greatly improve triaging time of your issue.
Expected behavior
I expect using /** @attr */
on a property in the constructor to get added to the custom-elements.json
import { LitElement } from 'lit-element';
export class MyElement extends LitElement {
/**
* This gets added as an attribute
* @attr {number}
*/
myBar = 0
constructor () {
super()
/**
* This doesn't get added as an attribute
* @attr {number}
*/
this.myFoo = 0
}
}
Reproduction: