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

Handling one line method/function/constructor #94

Closed
rodrigosiqueira opened this issue Aug 30, 2015 · 2 comments
Closed

Handling one line method/function/constructor #94

rodrigosiqueira opened this issue Aug 30, 2015 · 2 comments

Comments

@rodrigosiqueira
Copy link
Member

Problem: Kuniri can't handle single line method/function/constructor declaration, and some specific inline syntax.
Description: See the code below:

def xpto a + b end
def xpto a + b end;
def xpto a + b end; def abc a + b end; def lalala a + b end;

Those code have a valid syntax on ruby, and Kuniri does not handling it.

Suggestion: I recommend to add extra manipulation in "lib/kuniri/language/ruby/function_behavior_ruby.rb"

@JohnnysRibeiro
Copy link
Contributor

kuniri does handle single line single methods when there are parameters are between brackets
for example
def xpto () a+b end
def xpto (a,b) a+b end

@rodrigosiqueira
Copy link
Member Author

Thanks for your message Johnnys! I didn't know about this.
Kuniri still have some problems for handling parameter, based on your comment and in some bugs that I know, I created the issue below:

Handling parameters #95

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants