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_ast_gen] Handling for Singleton & Anon Classes #5006

Merged
merged 4 commits into from
Oct 17, 2024

Conversation

DavidBakerEffendi
Copy link
Collaborator

Additionally, added handling for range operators and lowered hash arguments in calls to named arguments to be consistent with current ANTLR interpretation of these args.

Also, I noticed the runner may fail, so I added a retry mechanism.

Additionally, added handling for range operators and lowered hash arguments in calls to named arguments to be consistent with current ANTLR interpretation of these args.
@DavidBakerEffendi DavidBakerEffendi added the ruby Relates to rubysrc2cpg label Oct 17, 2024
@DavidBakerEffendi DavidBakerEffendi self-assigned this Oct 17, 2024
@DavidBakerEffendi DavidBakerEffendi merged commit 009ac15 into dave/ruby/ruby_ast_gen Oct 17, 2024
5 checks passed
@DavidBakerEffendi DavidBakerEffendi deleted the dave/ruby/back_to_classes branch October 17, 2024 11:06
DavidBakerEffendi added a commit that referenced this pull request Oct 17, 2024
* Ruby AST Gen downloaded and unpacked

* Put AST Gen in front of ANTLR

* More entries

* Implemented JRuby for standalone capabilities. Edited SBT to help with DownloadHelper's assumptions on ensuring files are available.

* Migrated to creating RubyNodeCreator-style nodes directly

* Added all AstType entries

* Create match entries for all enums

* Added empty visit methods for each AST type

* More work on basic cases

* Completed exhaustive list

* Completed visitors for all types

* Executing JRuby from Joern's JVM process as dependency

* Inserted more missing cases

* Applied some control structures

* [ruby] Added json visitors for ifStmt, while, begin..end until

* Handle initial class/module body creation & summary creation (#5002)

* Handle initial class/module body creation & summary creation

* Separated tests between versions

* [ruby_ast_gen] Handling for Singleton & Anon Classes  (#5006)

* Improved runner stability and handling class fields

* [ruby_ast_gen] Handling for Singleton & Anon Classes
Additionally, added handling for range operators and lowered hash arguments in calls to named arguments to be consistent with current ANTLR interpretation of these args.

* Roll back AstGenRunner changes

* Remove line for diff

* Progress push

* Finished control structures

---------

Co-authored-by: David Baker Effendi <[email protected]>
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.

3 participants