Commit graph

5 commits

Author SHA1 Message Date
Wesley Wigham 78a99241d8
Reuse input type nodes when serializing signature parameter and return types (#37444)
* Accept change

* Accept the huge set of ever so slightly changed baselines

* Update return type logic to only reuse nodes if original nodes share scope with current node, like property types, only reuse nodes if symbols referened are acessible, reuse nodes for property signatures, too

* Only reuse nodes when a context is provided (otherwise identifier printback may fail)

* Only track symbol if symbol is found and no error is recorded

* Fix type parameter reuse lookup

* Forbid cjs module.exports references in retained nodes

* Adjust check for cjs export references to not include bad module type in output

* Add symbol to all identifiers we see in existing nodes for quickinfo

* Accept fourslash baseline updates

* Accept slightly updated baseline post-merge

* Do not copy original nodes for error types, replace empty type references with any
2020-04-01 19:50:21 -07:00
Andy Hanson 956c582786 Simplify quick-info tests 2016-09-13 11:49:01 -07:00
Daniel Rosenwasser 20c2c4e5e5 Amended fourslash tests to expect double quotes. 2015-10-02 15:22:35 -07:00
Sheetal Nandi 643d169465 Better symbol information for lambda variable types at the call site 2014-10-06 14:24:58 -07:00
Sheetal Nandi 010b9b663e Enabling more quickInfo tests 2014-09-30 17:10:27 -07:00
Renamed from tests/cases/fourslash_old/quickInfoForOverloadOnConst1.ts (Browse further)