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] Output ES2015 arrow functions, default parameters, rest parameters #4311

Merged
merged 48 commits into from
Oct 26, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
d66e4b1
Eliminate wrapper around “bound” (arrow) functions; output `=>` for s…
GeoffreyBooth Sep 20, 2016
b9cc264
Remove irrelevant (and breaking) tests
GeoffreyBooth Sep 21, 2016
c046a79
Merge branch 'master' of github.com:GeoffreyBooth/coffeescript into a…
GeoffreyBooth Sep 25, 2016
c29bd90
Minor cleanup
GeoffreyBooth Sep 25, 2016
5bc46ec
When a function parameter is a splat (i.e., it uses the ES2015 rest p…
GeoffreyBooth Sep 25, 2016
8b0ece3
Merge branch '2' into arrow-functions
GeoffreyBooth Sep 27, 2016
25fce2e
Merge branch '2' into arrow-functions
GeoffreyBooth Sep 27, 2016
a5d63dc
Rearrange function parameters when one of the parameters is a splat a…
GeoffreyBooth Sep 28, 2016
a25b9d3
Merge commit 'c5c4d7c8f8648103d5f9dc3aa45f37e325f1842c' into arrow-fu…
GeoffreyBooth Sep 28, 2016
528f007
Handle params like `@param`, adding assignment expressions for them w…
GeoffreyBooth Oct 1, 2016
0433ec0
Add parameter names (not a text like `'\nValue IdentifierLiteral: a'`…
GeoffreyBooth Oct 1, 2016
b71335d
Merge branch 'master' into arrow-functions
GeoffreyBooth Oct 1, 2016
387c5bd
For parameters with a default value, correctly add the parameter name…
GeoffreyBooth Oct 1, 2016
1c08aeb
Handle expansions in function parameters: when an expansion is found,…
GeoffreyBooth Oct 2, 2016
2821935
Handle splat parameters the same way we handle expansions: if a splat…
GeoffreyBooth Oct 3, 2016
e4c0f22
Fix parameter name when a parameter is a splat attached to `this` (e.…
GeoffreyBooth Oct 3, 2016
2006b2d
Rather than assigning post-splat parameters based on index, use slice…
GeoffreyBooth Oct 3, 2016
1423055
Dial back our w00t indentation
GeoffreyBooth Oct 4, 2016
6288ac8
Better parsing of parameter names (WIP)
GeoffreyBooth Oct 4, 2016
0750ff7
Refactor processing of splat/expansion parameters
GeoffreyBooth Oct 4, 2016
f360040
Merge branch '2' into arrow-functions
GeoffreyBooth Oct 4, 2016
3545819
Fix assignment of default parameters for parameters that come after a…
GeoffreyBooth Oct 4, 2016
8c24f76
Better check for whether a param is attached to `this`
GeoffreyBooth Oct 4, 2016
3e889f6
More understandable variable names
GeoffreyBooth Oct 4, 2016
cb48a0c
For parameters after a splat or expansion, assign them similar to the…
GeoffreyBooth Oct 9, 2016
c0c659f
Don’t add unnamed parameters (like `[]` as a parameter) to the functi…
GeoffreyBooth Oct 9, 2016
6149307
Disallow multiple splat/expansion parameters in function definitions;…
GeoffreyBooth Oct 9, 2016
073b3cd
Fix `this` params not getting assigned if the parameter is after a sp…
GeoffreyBooth Oct 9, 2016
a509f53
Allow names of function parameters attached to `this` to be reserved …
GeoffreyBooth Oct 9, 2016
4f4e951
Always add a statement to the function body defining a variable with …
GeoffreyBooth Oct 9, 2016
ccb7d84
Aftermath of having both `undefined` and `null` trigger the use of de…
GeoffreyBooth Oct 9, 2016
8e84792
More careful parsing of destructured parameters
GeoffreyBooth Oct 10, 2016
91396cb
Fall back to processing destructured parameters in the function body,…
GeoffreyBooth Oct 10, 2016
d75879a
Clean up comments
GeoffreyBooth Oct 10, 2016
51736d4
Restore new bare function test, minus the arrow function part of it
GeoffreyBooth Oct 16, 2016
912ae68
Merge branch 'master' into arrow-functions
GeoffreyBooth Oct 18, 2016
266582c
Merge branch '2' into arrow-functions
GeoffreyBooth Oct 18, 2016
1d5c553
Merge branch '2' into arrow-functions
GeoffreyBooth Oct 19, 2016
755fb5f
Test that bound/arrow functions aren’t overwriting the `arguments` ob…
GeoffreyBooth Oct 19, 2016
d5b3270
Follow ES2015 spec for parameter default values: `null` gets assigned…
GeoffreyBooth Oct 21, 2016
f46685c
Merge branch '2' into arrow-functions
GeoffreyBooth Oct 21, 2016
375b9a4
Mimic ES default parameters behavior for parameters after a splat or …
GeoffreyBooth Oct 21, 2016
efbfdf0
Merge branch '2' into arrow-functions
GeoffreyBooth Oct 23, 2016
2dd222b
Merge branch '2' into arrow-functions
GeoffreyBooth Oct 23, 2016
5b1426b
Merge branch '2' into arrow-functions
GeoffreyBooth Oct 24, 2016
9b4d6d7
Merge branch '2' into arrow-functions
GeoffreyBooth Oct 24, 2016
59233ee
Bound functions cannot be generators: remove no-longer-relevant test,…
GeoffreyBooth Oct 24, 2016
37bdef4
Error for bound generator functions should underline the `yield`
GeoffreyBooth Oct 24, 2016
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
23 changes: 4 additions & 19 deletions lib/coffee-script/browser.js

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

23 changes: 4 additions & 19 deletions lib/coffee-script/coffee-script.js

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

15 changes: 3 additions & 12 deletions lib/coffee-script/command.js

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

8 changes: 1 addition & 7 deletions lib/coffee-script/helpers.js

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

85 changes: 30 additions & 55 deletions lib/coffee-script/lexer.js

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

Loading