Commit d2c0ec7
committed
JS:resolve nested static classes+on func/class exps
1. In Javascript, support type references to class expressions whose
name is obtained via "static property assignment" to another class like
so:
```ts
function Outer() {
this.y = 2
}
Outer.Inner = class { }
/** @type {Outer.Inner} */
var inner;
```
2. In Javascript, support type references to properties of function and
class expressions that are assigned to a variable, like so:
```ts
var Outer = function {
this.y = 2
}
Outer.Inner = class { }
/** @type {Outer.Inner} */
var inner;
```1 parent 6c4c10c commit d2c0ec7Copy full SHA for d2c0ec7
2 files changed
+13-2Lines changed: 13 additions & 2 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- src/compiler
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+12-1Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1733 | 1733 | |
1734 | 1734 | |
1735 | 1735 | |
1736 | | - |
| 1736 | + |
| 1737 | + |
| 1738 | + |
| 1739 | + |
| 1740 | + |
| 1741 | + |
| 1742 | + |
| 1743 | + |
| 1744 | + |
1737 | 1745 | |
1738 | 1746 | |
1739 | 1747 | |
1740 | 1748 | |
1741 | 1749 | |
1742 | 1750 | |
| 1751 | + |
| 1752 | + |
| 1753 | + |
1743 | 1754 | |
1744 | 1755 | |
1745 | 1756 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1435 | 1435 | |
1436 | 1436 | |
1437 | 1437 | |
1438 | | - |
| 1438 | + |
1439 | 1439 | |
1440 | 1440 | |
1441 | 1441 | |
|
0 commit comments