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

Add support for required keyword arguments #748

Closed
wants to merge 9 commits into from

Conversation

chendo
Copy link

@chendo chendo commented Mar 12, 2014

Required keyword arguments were being collected under the ParameterNode#optional_params, but was causing an error as the default argument part of the s-expr was false.

I've solved this by rejecting any entry that has the default set to false, and added the params with default set to false to required_params.

Specs included, and a quick test by using @param keyword_arg: [Type] Message appears to work correctly.

@chendo
Copy link
Author

chendo commented Mar 12, 2014

Unsure of what to do with the spec failing in the legacy mode on 2.1.1 :/

@lsegal lsegal added this to the 3/22 Todo milestone Mar 22, 2014
@lsegal
Copy link
Owner

lsegal commented Jul 14, 2014

I've taken in a more complete implementation in #785. Thanks a lot for your patch though! I haven't completely verified if there is anything in this pull request that is missing from the other, so if you want to check master and make sure everything is good that would be great, @chendo. If you find anything is missing, feel free to improve on @IvanUkhov's PR.

@lsegal lsegal closed this Jul 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants