Commit graph

93 commits

Author SHA1 Message Date
Ron Buckton 3b96729e01
Fix visitLexicalEnvironment to properly merge hoisted declarations (#33219) 2019-09-03 15:29:41 -07:00
Ron Buckton 98b6db81d9
Allow accessors in ambient class declarations (#32787)
* Allow accessors in ambient class declarations

* Update src/compiler/transformers/declarations.ts

Co-Authored-By: Wesley Wigham <wewigham@microsoft.com>
2019-08-09 16:11:25 -07:00
Andrew Branch 4f3412153a
Parse quoted constructors as constructors, not methods (#31949)
* Parse quoted constructors as constructors, not methods

* Update baselines

* Fix disambiguation between quoted constructor and property named constructor

* Clean up parsing a bit

* Support escapes in constructor name

* Update baselines
2019-07-12 14:01:57 -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
Ron Buckton 7611c5b931
Fix for computed properties in instance initializers (#31517) 2019-05-22 11:17:54 -07:00
Andrew Branch e81fa2198d
Emit error on class fields named "constructor" 2019-04-25 17:30:41 -07:00
Andrew Branch c5e6913ede
Add grammar error on quoted constructors for TS 3.5 2019-04-25 15:44:23 -07:00
Andrew Branch 72f30a8308
Add test for quoted constructors 2019-04-25 11:35:10 -07:00
Anders Hejlsberg 2d44a40202 Add regression test 2019-02-05 13:08:18 -08:00
Andrey Roenko bea7ed1aa7 Merge branch 'master' into fix-generic-types-intersections 2018-11-20 20:31:02 +03:00
Andy e0dca0bd95
Error when destructuring private property in a parameter (#28562) 2018-11-16 12:47:05 -08:00
Andrey Roenko 15b4af63dd #27716: fix protected methods for intersection fo generic classes 2018-10-12 18:23:07 +03:00
Anders Hejlsberg 82fd5a884d Add test 2017-11-18 11:42:56 -08:00
Anders Hejlsberg 20b21d3259 Add test 2017-11-17 13:21:49 -08:00
Anders Hejlsberg 4141a37ba7 Add tests 2017-11-17 09:52:37 -08:00
Ron Buckton 264652c0ef Fix emit for classes with both fields and 'extends null' 2017-10-09 13:14:49 -07:00
Anders Hejlsberg 88961a276d Add tests 2017-02-09 17:47:04 -08:00
Anders Hejlsberg a8de5ce836 Add regression test 2017-02-01 11:37:24 -08:00
Anders Hejlsberg 56b1dcd8ea Add tests 2017-01-29 12:39:15 -08:00
Tingan Ho 1e5b7c5564
Add tests 2017-01-21 17:09:09 +01:00
about-code 9b217e31df Removing es6 method/property distinction.
Adding tests with default export and anonymous class expressions.
2017-01-14 16:30:12 +01:00
about-code 4718efd181 Removing es6 method/property distinction.
Adding tests with default export and anonymous class expressions.
2017-01-14 16:06:13 +01:00
about-code ff828fd3a0 Merge remote-tracking branch 'upstream/master' 2016-12-30 12:06:33 +01:00
Ron Buckton f89156bf55 Add error for super property before super 2016-12-06 10:47:02 -08:00
Arthur Ozga 4b0697ff9d fix test 2016-11-29 16:04:56 -06:00
Arthur Ozga 3cd1731628 abstract accessors can't have implementations 2016-11-29 15:59:28 -06:00
about-code b623f3771e Fix #442: (es3, es5, es6+) Show compiler errors for conflicting properties. 2016-11-09 21:08:56 +01:00
about-code d9a46e1ae6 Allowing static arguments() and static caller() for target "es6".
Disallow non-function properties `static arguments` and `static caller`, though.
2016-11-06 17:59:38 +01:00
about-code 189dbddb10 Accept baseline tests. Fixing diagnosticMessages.json (merge result not included in prior commit). 2016-11-05 18:42:53 +01:00
about-code 9122f62431 Merge remote-tracking branch 'upstream/master' 2016-10-17 00:02:44 +02:00
about-code 8a37a162b2 Fix for issue #442 2016-10-16 18:43:55 +02:00
about-code fc5b2e524d Fix for issue #442 2016-10-16 18:34:57 +02:00
Kanchalai Tanglertsampan dc501f47c2 Update baselines 2016-09-15 09:21:14 -07:00
Nathan Shively-Sanders 2169928f2b Protected constructors now accessible everywhere in subclasses 2016-07-22 17:38:25 -07:00
Nathan Shively-Sanders 25525607d5 Test that protected constructors are accessible
in static methods of subclasses
2016-07-22 13:38:45 -07:00
Andy Hanson 17009e41d4 Expand tests 2016-05-23 06:06:01 -07:00
Andy Hanson dcbaadaa60 Allow assignment to readonly parameter property within the constructor 2016-05-20 08:54:05 -07:00
Andy Hanson 40afe4a4dd Don't report error twice for readonly in method 2016-05-12 07:07:35 -07:00
Andy Hanson 02f2ed798f Add declaration emit tests for readonly parameter property 2016-05-12 07:07:34 -07:00
Andy Hanson ad2634e343 Fix #7590: Allow 'readonly' to be used in constructor parameters 2016-05-11 08:32:17 -07:00
Mohamed Hegazy 8647d2a97c Merge branch 'nestedPrivateProtectedMembers' of https://github.com/AbubakerB/TypeScript into AbubakerB-nestedPrivateProtectedMembers 2016-03-23 17:54:21 -07:00
Nathan Shively-Sanders 32909bc6e5 Tests for Stop destructuring assignment of private properties 2016-02-26 13:48:42 -08:00
AbubakerB e1be0ff23b Added more tests and accept baselines 2016-02-21 22:12:31 +00:00
AbubakerB 6ce411dd9f Added tests 2016-02-17 22:47:00 +00:00
AbubakerB 208830efa3 Updated tests and accepted baseline 2016-02-13 02:52:25 +00:00
AbubakerB ec7e80e377 Added tests and accept baselines 2016-02-13 01:10:47 +00:00
AbubakerB 4c93eb2e98 Accept baselines 2016-02-04 21:00:50 +00:00
AbubakerB c351ffcc75 Added and updated tests for constructor visibility 2016-02-03 22:48:33 +00:00
Yui T 0af52c3d47 Merge branch 'master' into fix4211 2015-12-14 21:51:36 -08:00
Daniel Rosenwasser e4c5676f2e Added test for immediately invoked class expression. 2015-12-08 17:54:33 -08:00