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

[ruby] Method Aliases #4373

Merged
merged 7 commits into from
Mar 22, 2024
Merged

[ruby] Method Aliases #4373

merged 7 commits into from
Mar 22, 2024

Conversation

DavidBakerEffendi
Copy link
Collaborator

  • Fixed = syntax error in method names
  • Made sure FieldIdentifiers can be implicitly returned
  • Created method aliases which are method declarations themselves which forward parameters to the aliasing call.

Resolves #4351

* Fixed `=` syntax error in method names
* Made sure `FieldIdentifier`s can be implicitly returned
* Created method aliases which are method declarations themselves which forward parameters to the aliasing call.
@DavidBakerEffendi DavidBakerEffendi added the ruby Relates to rubysrc2cpg label Mar 20, 2024
@DavidBakerEffendi DavidBakerEffendi self-assigned this Mar 20, 2024
@DavidBakerEffendi
Copy link
Collaborator Author

It appears calls that look like x=1,2,3 and multi-assignments are being (rightly) confused, so this needs further massaging on the parser end

@DavidBakerEffendi DavidBakerEffendi merged commit 267c97d into master Mar 22, 2024
5 checks passed
@DavidBakerEffendi DavidBakerEffendi deleted the dave/ruby/method-alias branch March 22, 2024 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ruby Relates to rubysrc2cpg
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ruby] Method Alias Handling
2 participants