Skip to content

Commit 4821f81

Browse files
authored
Refactor and improve caching in getTypeOfSymbol callees (microsoft#25842)
* Refactor+improve caching in getTypeOfSymbol 1. Always cache calls to getTypeOfSymbol, even in the error case. 2. JS expando types are now cached on the original symbol as well as the cloned symbol. Previously they were only cached on the cloned symbol. 3. Large callees of getTypeOfSymbol (variable/param/property, func/class/enum/module, and accessors) now handle only caching and delegate to -Worker functions whose return values are cached unconditionally (unlike previously). * Fix circularity detection in getTypeOfFuncClassEnumModule Previously, successfully obtaining a type from a js special property declaration would forget to pop the circularity detection stack and check its value.
1 parent ab5f047 commit 4821f81

1 file changed

Lines changed: 155 additions & 153 deletions

File tree

0 commit comments

Comments
 (0)