5766 Commits

Author SHA1 Message Date
Ron Buckton
96927379f0 Emit generated name for unnamed default exported class with decorated members 2017-04-19 14:53:32 -07:00
Nathan Shively-Sanders
a8593996f9 Merge pull request #15258 from Microsoft/mergeSymbol-uses-first-decl-not-valueDecl
mergeSymbol uses first declaration, not valueDeclaration
2017-04-19 08:47:43 -07:00
Nathan Shively-Sanders
eba15f41e4 Test:type alias merged w/interface-namespace errors
Previously it crashed when it assumed valueDeclaration was always
defined.
2017-04-18 16:19:05 -07:00
Nathan Shively-Sanders
2e43c869b4 Merge pull request #15257 from Microsoft/unknown-properties-are-assignable-to-Object-in-union
Unknown properties are assignable to `Object` in union
2017-04-18 15:21:46 -07:00
Nathan Shively-Sanders
8ab22217c1 Test:Unknown properties are assignable to Object in union
Add test and accept baselines
2017-04-18 14:58:27 -07:00
Mohamed Hegazy
6de4693118 Merge pull request #15240 from Microsoft/fixCrashFindingLocals
Check if container has locals before looking up properties
2017-04-18 14:40:26 -07:00
Mohamed Hegazy
e6ecfa46f0 Merge pull request #15229 from Microsoft/Fix15220
Fix #15220: Check for file on diagnostics before getting line map
2017-04-18 14:39:54 -07:00
Ron Buckton
2ca1de514a Merge pull request #15241 from Microsoft/fix15205
Yield in async generator should implicitly unwrap operand
2017-04-18 13:25:20 -07:00
Nathan Shively-Sanders
e36d8d5c63 Merge pull request #15239 from Microsoft/typeof-can-refer-class-before-declaration
Typeof can refer to block-scoped values before declaration
2017-04-18 13:12:28 -07:00
Anders Hejlsberg
cef42c97fe Merge pull request #15104 from Microsoft/covariantCallbacks
Covariant checking for callback parameters
2017-04-18 11:35:21 -07:00
Ron Buckton
5dca7ccb1d Fix yield* as well 2017-04-17 16:37:48 -07:00
Mohamed Hegazy
b7c416cdeb Check if container has locals before looking up properties 2017-04-17 16:26:49 -07:00
Nathan Shively-Sanders
3739216c79 Merge branch 'master' into typeof-can-refer-class-before-declaration 2017-04-17 15:30:16 -07:00
Nathan Shively-Sanders
aaf861af96 Remove TODO from test now that it's done 2017-04-17 15:25:36 -07:00
Nathan Shively-Sanders
42ac23a585 Test: typeof can refer to block-scoped var before declaration 2017-04-17 15:20:36 -07:00
Nathan Shively-Sanders
f071928a9e Merge branch 'master' of https://github.com/Microsoft/TypeScript 2017-04-17 14:01:56 -07:00
Nathan Shively-Sanders
0292f5867c Merge branch 'allow-export-specifier-reference' of https://github.com/Kovensky/TypeScript into Kovensky-allow-export-specifier-reference 2017-04-17 13:59:58 -07:00
Mohamed Hegazy
4546b0dd8e Make sure we have a node for the error in cases of special property assignment 2017-04-17 13:15:27 -07:00
Mohamed Hegazy
4e29b1883d Merge pull request #15051 from Microsoft/at_types
Support @types module resolution from scoped packages
2017-04-17 10:08:15 -07:00
Nathan Shively-Sanders
e5416b5dcc Merge pull request #15075 from Microsoft/fix-exponential-expanding-array-assignment
Evolving array element type ignores contextual type
2017-04-17 08:26:06 -07:00
Mohamed Hegazy
8324244147 Merge pull request #14823 from Microsoft/fix14620
Fix #14620: Lookup names in exports as well as locals when binding special properties
2017-04-14 10:46:22 -07:00
Mohamed Hegazy
76c547d736 Merge remote-tracking branch 'origin/master' into fix14620 2017-04-14 10:18:56 -07:00
Andy
72feaad893 Merge pull request #14001 from Microsoft/refactor_findallrefs
Refactor findAllReferences. Now supports renamed exports and imports.
2017-04-14 09:57:54 -07:00
Mohamed Hegazy
ecd772d620 Merge pull request #15186 from Microsoft/fix15184
Fix #15184: Use `void` and not `undefined` for `this` parameter types in the library
2017-04-14 09:57:36 -07:00
Mohamed Hegazy
ccda015578 Fix failing fourslash test 2017-04-14 09:38:53 -07:00
Nathan Shively-Sanders
959187607d serializeTypeNode handles object
This was just overlooked earlier.
2017-04-14 09:28:31 -07:00
Nathan Shively-Sanders
d53b3ac43c Merge pull request #15032 from Microsoft/fix-anon-class-this-reference-caching
Do not walk up control flow containers for `this`
2017-04-13 15:10:01 -07:00
Nathan Shively-Sanders
8a599f662f Merge pull request #14090 from Microsoft/es5-emit-param-initialiser-before-object-rest
ES5:Emit parameter initialiser before object rest destructuring
2017-04-13 13:43:13 -07:00
Nathan Shively-Sanders
b2199bd23c Test:order of directives, initialisers, object spread destructuring 2017-04-13 10:35:50 -07:00
Anders Hejlsberg
014845a637 Merge pull request #15057 from Microsoft/fixExcessPropertyCheck
Fix excess property check
2017-04-12 15:54:32 -10:00
Nathan Shively-Sanders
11f715c724 Merge pull request #15036 from Microsoft/remove-readonly-from-spread-properties
Remove readonly from spread properties
2017-04-12 16:32:16 -07:00
Nathan Shively-Sanders
24852b6be4 Merge branch 'master' into es5-emit-param-initialiser-before-object-rest 2017-04-12 12:59:10 -07:00
Nathan Shively-Sanders
0ffe24c64b Expand spread property find-all-ref test 2017-04-12 11:47:23 -07:00
Nathan Shively-Sanders
28cdaf24e9 Address PR:fix find-all-refs and slim down code
Also add readonly to find-all-ref test
2017-04-12 11:31:52 -07:00
Andy Hanson
c7d51a3053 Merge branch 'master' into refactor_findallrefs 2017-04-12 11:27:58 -07:00
Anders Hejlsberg
3cda0eac32 Update tests 2017-04-10 17:14:22 -10:00
Anders Hejlsberg
510bc81967 Add another test case 2017-04-10 07:33:08 -10:00
Anders Hejlsberg
50f84b12a2 Add tests 2017-04-08 14:19:25 -07:00
Nathan Shively-Sanders
1671a06655 Test: object literal assignments->expanding arrays
Previously, the compiler would run out of memory for more than 13 or 14
of these assignments.
2017-04-07 11:14:16 -07:00
Anders Hejlsberg
69c30a0126 Add regression tests 2017-04-06 12:57:03 -07:00
Nathan Shively-Sanders
3029b8fe38 Merge pull request #14935 from Microsoft/allow-extending-from-any
Allow extending from any
2017-04-06 09:18:01 -07:00
Nathan Shively-Sanders
f635042255 Improve test and comments
Test asserts that unused locals error works for untyped modules.
Comment no longer claims to check for untyped modules.
2017-04-06 09:02:18 -07:00
Andy Hanson
8ec593aec2 Support @types module resolution from scoped packages 2017-04-06 08:05:30 -07:00
Nathan Shively-Sanders
90d5c299b0 Remove special symbol for untyped modules
Extending symbols from untyped modules is no longer an error, so #12532
didn't get us anything except slightly better quick info.
2017-04-05 16:01:04 -07:00
Anders Hejlsberg
dce7fca83d Merge pull request #15033 from Microsoft/emptyObjectIntersection
Remove empty object types from intersection types
2017-04-05 14:04:16 -07:00
Nathan Shively-Sanders
6879bc1ea1 Test that spread removes readonly from properties 2017-04-05 13:45:51 -07:00
Nathan Shively-Sanders
e09533d19d Update test comments to match property names 2017-04-05 13:08:21 -07:00
Yui
8941e5f7b0 Merge pull request #15006 from Microsoft/master-14895
[Master] Emit parenthesis around propert/element access expression of casted object literal expression
2017-04-05 13:03:24 -07:00
Anders Hejlsberg
0b5284d77e Add tests 2017-04-05 11:22:21 -07:00
Nathan Shively-Sanders
db3431e3af Add this narrowing test and update previous test 2017-04-05 11:06:14 -07:00