Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CS2] Compile class constructors to ES2015 classes #4354

Merged
merged 32 commits into from
Jan 13, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
2b6e706
Compile classes to ES2015 classes
Nov 27, 2016
e4acb2a
Add tests to verify class interoperability with ES
GeoffreyBooth Nov 12, 2016
f703e0c
Refactor class nodes to separate executable body logic
Dec 13, 2016
39b2f69
Rename `Code#static` to `Code#isStatic`
Dec 15, 2016
3000908
Output anonymous classes when possible
Dec 15, 2016
2a7687c
Throw errors at compile time for async or generator constructors
Dec 15, 2016
cc808cc
Improve handling of anonymous classes
Dec 15, 2016
6c5b86e
Add a `replaceInContext` method to `Node`
Dec 19, 2016
4369e44
Separate `this` assignments from function parameters
Dec 19, 2016
45c72a7
Change `super` handling in class constructors
Dec 19, 2016
41070d5
Improve `super` handling in constructors
Dec 19, 2016
19e7a96
Fix anonymous classes at the top level
Dec 19, 2016
1343156
Re-add Parens wrapper around executable class bodies
Dec 19, 2016
acb97c6
Throw compiler errors for badly configured derived constructors
Dec 19, 2016
6d34521
Add some tests exercising new class behaviour
Dec 19, 2016
a5f8975
Improve constructor `super` errors
Dec 20, 2016
02b9f12
Fix compilation of multiple `super` paths in derived constructors
Dec 20, 2016
7fa295b
Additional class tests, added as a separate file to simplify testing …
mrmowgli Dec 21, 2016
80ce0e8
Changes to the tests. Found bug in super in prototype method. fixed.
mrmowgli Dec 22, 2016
31c6e78
Added failing test back in, dealing with bound functions in external …
mrmowgli Dec 22, 2016
16cf6ec
Located a bug in the compiler relating to assertions and escaped ES6 …
mrmowgli Dec 22, 2016
7a18213
Move tests from classes-additional.coffee into classes.coffee; commen…
GeoffreyBooth Dec 27, 2016
87ba4db
Cleaned up tests and made changes based on feedback. Test at the end…
mrmowgli Dec 29, 2016
0bf0770
Make HoistTarget.expand recursive
Dec 29, 2016
aa5656b
Uncomment final test in classes.coffee
Dec 29, 2016
a7d3520
Fixed last test TODOs in test/classes.coffee
Dec 29, 2016
fc1fd82
Added more tests for compatability checks, statics, prototypes and ES…
mrmowgli Dec 30, 2016
e9d12dd
Changes to reflect feedback and to comment out issues that will be ad…
mrmowgli Jan 7, 2017
ca203b5
Clean up test/classes.coffee
Jan 8, 2017
52063f3
Remove check for `super` in derived constructors
Jan 8, 2017
9d7c1f7
Disallow 'super' in constructor parameter defaults
Jan 10, 2017
5750859
Disallow @-params in derived constructors without 'super'
Jan 10, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
128 changes: 62 additions & 66 deletions lib/coffee-script/lexer.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading