17537 Commits

Author SHA1 Message Date
Mohamed Hegazy
4dc00a2edc Update LKG 2017-05-15 16:22:48 -07:00
Mohamed Hegazy
1788478486 Merge branch 'release-2.3' of https://github.com/Microsoft/TypeScript into release-2.3 2017-05-15 16:21:07 -07:00
Ron Buckton
507dc76615 Fix issue with throw in async delegator. 2017-05-15 16:17:50 -07:00
Mohamed Hegazy
2dd4c8af07 Update LKG 2017-05-15 16:17:10 -07:00
Mohamed Hegazy
9d2656fe54 Fix #15463: use intersection types to emulate spread in generic react components (#15851)
* Fix #15463: use intersection types to emulate spread in generic react components

* Fix lint errors

* reverse condition
2017-05-15 15:51:36 -07:00
Ron Buckton
a0db9adf92 Fix issue with throw in async delegator. 2017-05-15 15:39:10 -07:00
Mohamed Hegazy
8534a5abfc Update LKG 2017-05-12 12:56:50 -07:00
Yui T
6976dda2a3 Address PR 2017-05-12 12:27:42 -07:00
Yui T
dbae5d210e Add more tests and update baselines 2017-05-12 12:27:38 -07:00
Yui T
5eb9fd04c1 getApparentType of the propsType 2017-05-12 12:27:28 -07:00
Kanchalai Tanglertsampan
07b48575c4 Update baselines 2017-05-12 12:27:20 -07:00
Kanchalai Tanglertsampan
62c0e69000 Add tests and update lib tests file 2017-05-12 12:27:14 -07:00
Kanchalai Tanglertsampan
331285be6b getApparentType for each constituent of props type of the targetAttributesType 2017-05-12 12:26:50 -07:00
Nathan Shively-Sanders
35001e9416 Merge branch 'release-2.3' of https://github.com/Microsoft/TypeScript into release-2.3 2017-05-11 12:41:42 -07:00
Nathan Shively-Sanders
3831804cdf Test:reference ambient block scoped vars in different file 2017-05-11 12:37:49 -07:00
Nathan Shively-Sanders
7dd3cde196 Allow references to ambient block scoped variables
Even when
1. --out or --outfile is specified
2. The block scoped variable's file is after the referrer's file.
2017-05-11 12:37:41 -07:00
jramsay
0f7cc75d9b Merge pull request #15752 from Microsoft/PortCompileOnSaveFixToRelease-2.3
Port Compile On Save Fix to Release-2.3
2017-05-10 16:34:57 -07:00
Jason Ramsay
fd43e15058 In shims.ts resolveModuleName should only return resolved modules found in ts files (.ts, .d.ts, .tsx) 2017-05-10 16:12:05 -07:00
Nathan Shively-Sanders
52df34bfab Fix lint 2017-05-10 12:45:56 -07:00
Nathan Shively-Sanders
7b660c8f36 Test: no declare in declaration tmp in namespace 2017-05-10 12:45:48 -07:00
Nathan Shively-Sanders
03bca49794 Correctly emit expression in extends in namespace
Shouldn't have a declare for the emitted temp
2017-05-10 12:45:41 -07:00
Nathan Shively-Sanders
5cd9f4e2dd Unnamed nodes now extend Declaration, not NamedDeclaration 2017-05-10 09:20:17 -07:00
Nathan Shively-Sanders
39f6454f76 Switch to Declaration/NamedDeclaration hierarchy 2017-05-10 09:19:55 -07:00
Nathan Shively-Sanders
42e7852034 Revert "Convert Declaration to union, not type hierarchy"
This reverts commit 573040f0cfa713929bfa1fe84f4fd2a81cc82658.
2017-05-10 09:19:47 -07:00
Nathan Shively-Sanders
6941aebe43 Revert "Fix lint"
This reverts commit b39c319f0c4ee9b460ed51eba77e8c0958896c80.
2017-05-10 09:19:40 -07:00
Nathan Shively-Sanders
b15309251c Revert "Turn ClassElement and TypeElement into unions too"
This reverts commit 22f353ac940bfd4e170d9e56a094fdd385476191.
2017-05-10 09:19:35 -07:00
Nathan Shively-Sanders
10475c717e Turn ClassElement and TypeElement into unions too
Slows down compilation another 3%, so I'm not sure we'll want to take
this change.
2017-05-10 09:19:22 -07:00
Nathan Shively-Sanders
356651e1ca Address comments: simplify, dedupe and clean up 2017-05-10 09:19:16 -07:00
Nathan Shively-Sanders
9983a11429 Fix lint 2017-05-10 09:19:06 -07:00
Nathan Shively-Sanders
949bb27ff1 Convert Declaration to union, not type hierarchy 2017-05-10 09:19:00 -07:00
Nathan Shively-Sanders
1bdea3910f Update baselines 2017-05-10 09:18:51 -07:00
Nathan Shively-Sanders
0f74294da2 getNameOfDeclaration uniformly, including JS decls
JS-style assignment declarations have a name, but it's not stored on the
name property of the BinaryExpression. This commit adds
`getNameOfDeclaration` to uniformly get the name of a declaration.

It also reworks the declaration of `Declaration` so that accessing
`name` is an error unless the type does *not* include
BinaryExpression.
2017-05-10 09:18:35 -07:00
Yui
c10de35721 Merge pull request #15687 from Microsoft/release_allowSpreadGenericType
[Release] Allow spread generic type
2017-05-08 21:09:32 -07:00
Yui T
69e35cbca4 Fix linting error 2017-05-08 16:07:20 -07:00
Yui T
d4539bb9fc Update baaselines 2017-05-08 16:07:14 -07:00
Kanchalai Tanglertsampan
b7c54f375d Update tests and baselines 2017-05-08 16:07:09 -07:00
Kanchalai Tanglertsampan
e829fa0cc1 Do not error when spread generic type 2017-05-08 16:07:00 -07:00
Yui
eda9133c5b Merge pull request #15674 from Microsoft/release-fix15463
[Release] fix15463
2017-05-08 15:11:27 -07:00
Nathan Shively-Sanders
9dafe8b8ad Merge branch 'release-2.3' of https://github.com/Microsoft/TypeScript into release-2.3 2017-05-08 14:13:06 -07:00
Mohamed Hegazy
6beaafc5ca Update LKG 2017-05-08 13:46:52 -07:00
Nathan Shively-Sanders
1e39e6c32c Clean up test a little 2017-05-08 13:37:44 -07:00
Nathan Shively-Sanders
a11e0a7bcf Update test with trickier case from #15616 2017-05-08 13:37:38 -07:00
Nathan Shively-Sanders
b2cfaf8789 Simplify JS check in index constraint error reporting
Any declaration that is a BinaryExpression is a special javascript
declaration, and all JS declarations that are checked for index
constraint compatibility are, in fact, relevant.
2017-05-08 13:37:30 -07:00
Anders Hejlsberg
5c56b4cc13 Optimize signature relationship checks in instantiations of same type 2017-05-08 13:12:45 -07:00
Kanchalai Tanglertsampan
b4fce08b69 Update baselines 2017-05-08 12:24:28 -07:00
Kanchalai Tanglertsampan
d5ae6d183d Refactor "isKnownProperty" to be use outside of checkTypeScriptAssignable as JSX do excess property after 2017-05-08 12:24:23 -07:00
Yui T
acf78b718a Wip - remove freshness flag from jsx attributes 2017-05-08 12:24:19 -07:00
Yui T
64d301bee6 Updates tests and baselines 2017-05-08 12:24:11 -07:00
Yui T
ddd5351525 Add tests and baselines 2017-05-08 12:24:05 -07:00
Yui T
66b0b4415e Address PR 2017-05-08 12:23:48 -07:00