Commit Graph

9251 Commits

Author SHA1 Message Date
Titian Cernicova-Dragomir
bc07eec015 Added tests for new error messages on calls to unions. 2019-06-28 23:23:17 +03:00
Titian Cernicova-Dragomir
768318b30c Improved error message for calling/constructing types 2019-06-28 23:23:16 +03:00
Wesley Wigham
2af8ac73ff Add xterm test to docker suite (#32149) 2019-06-27 15:29:22 -07:00
Nathan Shively-Sanders
2362dd4fac Add fourslash test of jsdoc backtick parsing 2019-06-27 08:49:56 -07:00
Nathan Shively-Sanders
8454ef114d JSDoc:Treat tokens between backticks as comments
even `@`, which would otherwise start a new tag.
2019-06-26 16:04:46 -07:00
Klaus Meinhardt
392d775095 allow const-assertion on aliased enum symbol (#32110)
Fixes: #32087
2019-06-26 14:42:06 -07:00
Orta
a50a5d309c Merge pull request #32088 from orta/fix-32068
Handle making sure that two less thans are never converted into >>
2019-06-26 14:10:02 -07:00
Andrew Branch
871bdeeec4 Merge pull request #31480 from andrewbranch/bug/25487
Fix invalid JSXExpressions having identifier-ish things in their trivia, improve error messages for comma expressions in JSX
2019-06-26 10:13:42 -07:00
Wesley Wigham
34eb5ddf75 Fix tuple and array comparisons during identity checking (#32089) 2019-06-25 20:56:41 -07:00
Orta Therox
897fb3a2a6 Handle making sure that two less thans are never converted into >> 2019-06-25 15:16:15 -07:00
Wesley Wigham
a150d55592 Explicitly error when an exclude is provided by a test as it will be unused (#32014) 2019-06-24 15:29:02 -07:00
Andrew Branch
6717d8d928 Merge pull request #31942 from andrewbranch/bug/30882
Improve error message on indexed access to private members of type parameters
2019-06-24 09:22:21 -07:00
Anders Hejlsberg
9223f39f53 Add regression test 2019-06-21 18:07:15 -10:00
Daniel Rosenwasser
2c458c0d1c Merge pull request #31414 from dhruvrajvanshi/master
Report error on method name for chained method calls
2019-06-21 17:51:04 -07:00
Wesley Wigham
a97c18f227 Ignore identifier declarations when calculating symbol visibility (#31974) 2019-06-20 17:20:12 -07:00
Wesley Wigham
f2735b5a06 Fake up a namespace enclosing declaration when generating expando namespace members (#31971)
* Fake up a namespace enclosing declaration when generating expando namespace members

* Fix #31676
2019-06-20 12:58:16 -07:00
Wesley Wigham
c39a877a92 Add dockerfile based tests for azure-sdk-for-js and office-ui-fabric-react (#31948)
* Add dockerfile based tests

* Update tests/cases/docker/README.md

Co-Authored-By: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>

* Combine sanitize functions

* Add some debugging instructions to README

* Fix listed command order
2019-06-20 12:47:57 -07:00
Anders Hejlsberg
6def72b3a4 Merge pull request #31950 from microsoft/unionObjectAndArrayLiterals
Union inferences from object and array literals
2019-06-20 09:36:20 -07:00
Sheetal Nandi
7ed3896a0a Merge pull request #31587 from microsoft/definitionSpan
Include declarationSpan as relevant declaration span when defintion or other places are declaration name
2019-06-18 14:07:15 -07:00
Anders Hejlsberg
51712fb1ae Add tests 2019-06-17 16:18:13 -10:00
Josh Goldberg
ca00b3248b Added --noImplicitThis code fix for functions used as object properties (#31138)
* Added --noImplicitThis code fix for functions used as object properties

Before trying out all the various possibilities for where these functions could be used, I figured I'd start out with a relatively simple use case to verify this is the right approach. Is it? 😄

Starts on #28964.

* Fixed function expression names; included new baselines

* Got JSDocs to work, hooray!

* Added test for 'any' case of no function uses

* Refactored for inferFunctionReferencesFromUsage

* Fixed inference bug: undefined references cause parameters to default

* Removed dead code comments
2019-06-17 19:00:15 -07:00
Andrew Branch
04fbd93bf8 Revert previous fix and improve error message instead 2019-06-17 15:21:21 -07:00
Ron Buckton
179381301e Move class property transform (#31848)
* Revert "Revert "Move class property transformation into new transformer. (#30467)""

This reverts commit 53467ae4a4.

* Fix emit issues
2019-06-17 14:26:42 -07:00
Andrew Branch
1ad3285701 Add test cases for union and intersection constraints 2019-06-17 09:45:09 -07:00
Andrew Branch
48f74fdf80 Consider non-public literal members in index type of constrained type parameters 2019-06-14 17:29:39 -07:00
Sheetal Nandi
73bf2684ac Rename to use contextSpan 2019-06-13 12:41:21 -07:00
Wesley Wigham
74c6bc1f85 Filter primitives from union when checking for mismatched excess props if nonprimitive type is present (#31708)
* Filter primitives from union when checking for mismatched excess props if nonprimitive type is present

* Use maybeTypeOfKind
2019-06-12 17:31:57 -07:00
Benjamin Lichtman
0628adc056 Merge pull request #31865 from amcasey/FunctionHintSpan
Correct outline hint spans for functions
2019-06-12 10:13:21 -07:00
Andrew Casey
1bf28f21de Add regression test 2019-06-11 17:50:36 -07:00
Anders Hejlsberg
ad322a561a Merge pull request #31838 from microsoft/emptyIntersectionReduction
Empty intersection reduction
2019-06-11 12:25:51 -07:00
Daniel Rosenwasser
79aff027f3 Merge pull request #31290 from a-tarasyuk/bug/29880
29880 - No completions for computed string properties
2019-06-10 13:45:58 -07:00
Anders Hejlsberg
98bbb22bc4 Add tests 2019-06-09 10:18:36 -07:00
Anders Hejlsberg
aa0ea51169 Update fourslash tests 2019-06-09 10:11:36 -07:00
Anders Hejlsberg
9cc9fb9bd7 Update tests 2019-06-09 08:00:01 -07:00
Anders Hejlsberg
69706bd064 Merge branch 'master' into wideningInAccessExpressions 2019-06-07 10:54:39 -07:00
Anders Hejlsberg
4ae3a54ba6 Merge pull request #31784 from microsoft/numericEnumMappedType
Numeric enums as key types in mapped types
2019-06-06 15:00:19 -07:00
Sheetal Nandi
a84ed93f72 Merge branch 'master' into definitionSpan 2019-06-06 14:13:09 -07:00
Sheetal Nandi
a67b375d0e Handle module specifiers 2019-06-06 13:39:04 -07:00
Anders Hejlsberg
9d2a2c9634 Add tests 2019-06-06 13:33:36 -07:00
Sheetal Nandi
a120c59015 Handle Lable 2019-06-06 12:04:48 -07:00
Sheetal Nandi
768c9ed8d7 Handle jsx Opening, Closing and Self closing tags 2019-06-06 11:48:45 -07:00
Sheetal Nandi
edad317395 Fourslash server tests 2019-06-06 10:41:33 -07:00
Sheetal Nandi
018026ad52 More tests 2019-06-06 10:05:28 -07:00
Anders Hejlsberg
7e07669885 Generate declaration file from tests 2019-06-06 09:41:44 -07:00
Sheetal Nandi
e4a2dd510f Handle export keyword of export assignment 2019-06-06 09:09:39 -07:00
Sheetal Nandi
64de998356 More tests 2019-06-06 09:01:58 -07:00
Anders Hejlsberg
f8aaccdd1d Add tests 2019-06-05 16:55:08 -07:00
Sheetal Nandi
1163a93ed6 Handle default keyword of default export 2019-06-05 16:35:29 -07:00
Sheetal Nandi
e1e1603547 More tests 2019-06-05 16:07:25 -07:00
Sheetal Nandi
6dc2ba7939 Take optional string of range text for singleReferenceGroup 2019-06-05 14:43:22 -07:00