Bowen Ni

Results 4 issues of Bowen Ni

A very common pattern I saw from the recent migrations: ```js class A { /** @param {boolean} p */ constructor(p) { /** @private */ this.p_ = p; } } ```...

gents

```js class B { constructor() { /** @type {number} */ this.foo = 1; } } class C extends B { constructor() { super(); } f() { this.foo = 2; }...

gents

```javascript /** * @constructor */ function A() {}; A.b = {}; ``` is converted to ```javascript class A {} A.b = {}; ``` It should be converted to ```javascript class...

gents

gents converts [this closure code](https://github.com/angular/clutz/blob/7da2c71cd68e3a1f80279893cb38d644420d8862/src/test/java/com/google/javascript/gents/singleTests/classes.js#L50-L52) to [this TS code](https://github.com/angular/clutz/blob/7da2c71cd68e3a1f80279893cb38d644420d8862/src/test/java/com/google/javascript/gents/singleTests/classes.ts#L58-L59) but that is invalid TS code. Consider flatten the nested object and make `klass` a top level class?

gents