Commit 96ac5d6
authored
fix(jsii): better usage reporting of private types (#247)
Anonymous types that are deduced by TypeScript get reported as:
Cannot use private type __object in exported declarations
The usage location would not be reported however, because the field
'symbol.valueDeclaration' was empty.
There are locations in 'symbol.declarations' though, so we use
that as a fallback instead, which works.1 parent 6ad6b9d commit 96ac5d6
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| 205 | + | |
| 206 | + | |
205 | 207 | | |
206 | | - | |
| 208 | + | |
207 | 209 | | |
208 | 210 | | |
209 | 211 | | |
210 | 212 | | |
211 | 213 | | |
212 | | - | |
| 214 | + | |
213 | 215 | | |
214 | 216 | | |
215 | 217 | | |
216 | 218 | | |
217 | | - | |
| 219 | + | |
218 | 220 | | |
219 | 221 | | |
220 | 222 | | |
| |||
0 commit comments