Only display `(local class)` if the class expression is named and has no
alias. Other named classes use the normal `class C` format; anonymous
classes display `(Anonymous class)`.
* Adding a JSDoc comment to the es5 type declarations to describe the functionality of Date.now() & updating baselines (50565)
* Update the Date.now() type declaration description
Updating the Date.now() type declaration description to make it clearer and more accurate.
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
* Fix crash in goto-def on `@override`
When the base type is not defined, getDefinitionFromOverriddenMember
will have its type as errorType, which has no symbol. The error handling
previously only handled the case of no baseType at all -- which I'm not
sure ever actually happens.
* Improve checking
1. getTypeAtLocation never returns undefined, only errorType, so check for that.
2. Return directly after missing baseTypeNode instead of continuing to return later.
* Experiment with making goto-def on `override` more consistent
* Unify static/instance node->symbol->type path
* Make getSymbolAtLocation support class expressions
and parenthesized expressions
* Revert "Make getSymbolAtLocation support class expressions"
This reverts commit 4c1b03135576c9e5d146ce6f38e691c804cbb0dd.
* fix semicolon lint
1. Some special-case code in find-all-refs is no longer relevant.
2. Using the real symbol gives names to more class expressions, so I
made the expression more complex to keep the class truly anonymous in
goToImplementationInterface_07. The quick info display also changes,
from
```
(anonymous local class)
```
to
```
(local class) (Anonymous class)
```
This is more consistent internally and externally, so I think it's a
good change.
And accept baselines for later inspection.
One fourslash test changes, indicating that quick info relied on
getTypeAtLocation not returning anything for class expressions to
distinguish named from anonymous class expressions. This predicate will
have to be improved.
* Include type parameter defaults in contextual typing
* Add tests
* Add additional an test for instantiating contextual signature using default type param (#51002)
* Update comment
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
* Remove language version check for extended escapes.
* Accepted baselines.
* Record whether nodes have extended Unicode escapes. Replace them in the es2015 transform.
* Accepted baselines.
* Move file to better-reflect generality of tests.
* Added tests for variables at the top level.
* Accepted baselines.
* Added test for extended astral character.
* Accepted baseline.
* Enable sourcemaps in tests.
* Accepted baselines.
* Call `setOriginalNode` on identifiers with extended escapes.
* `in` proves property presence only if property can't be undefined
* Accept new baselines
* Add tests
* Accept new baselines
* Properly compute SymbolFlags.Optional for intersected properties
* Accept new baselines
* Check optionality only for property-like declarations
* Add more tests
* Resolve aliases past first merge in `resolveName`
* WIP
* Fix when a namespace merges with an alias that resolves to a type merged with an alias that resolves to a value 😵
* Audit all resolveSymbol and resolveName calls
* Fix qualification in re-exporting global cases
* Fix infinite loop detection
* Update baselines
* Just make getAllSymbolFlags default to All
* Add test
* During uptodate ness check, with buildInfo, check if there are errors in the program to determine uptodateness
Fixes#50959
* Comment update