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

[rubysrc2cpg] General Do-Block Function Fixes #3676

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

DavidBakerEffendi
Copy link
Collaborator

  • Implemented define_method handling when parenthesis are used
  • Fixed dangling identifiers when they are converted to method parameters by removing them from scope
  • Properly propagated do-block function AST members as a Seq
  • All tests in MethodTwoTests are un-ignored and pass
  • Modified tests here and there, with dotAst visual confirmation of fixes

* Implemented `define_method` handling when parenthesis are used
* Fixed dangling identifiers when they are converted to method parameters by removing them from scope
* Properly propagated do-block function AST members as a Seq
* All tests in MethodTwoTests are un-ignored and pass
* Modified tests here and there, with dotAst visual confirmation of fixes
@DavidBakerEffendi DavidBakerEffendi added the ruby Relates to rubysrc2cpg label Sep 19, 2023
@DavidBakerEffendi DavidBakerEffendi merged commit 4ef5cdc into master Sep 19, 2023
@DavidBakerEffendi DavidBakerEffendi deleted the dave/ruby/do-block-fn-fixes branch September 19, 2023 18:01
khemrajrathore added a commit to Privado-Inc/joern that referenced this pull request Oct 10, 2023
khemrajrathore added a commit to Privado-Inc/joern that referenced this pull request Oct 10, 2023
DavidBakerEffendi pushed a commit that referenced this pull request Oct 11, 2023
* Revert "[rubysrc2cpg] Do-Block Function as Conditional (#3729)"

This reverts commit c726bb5.

* Revert "[rubysrc2cpg] Chained Higher Order Methods (#3727)"

This reverts commit 39dd417.

* Revert "[rubysrc2cpg] Fixed Duplicate Do-Blocks Due to Side-Effect (#3720)"

This reverts commit 3f0e745.

* Revert "[rubysrc2cpg] Comprehensive follow up to #3708's fix (#3714)"

This reverts commit 662bd23.

* Revert "[rubysrc2cpg] Fixed Bug with Higher-Order Functions (#3708)"

This reverts commit 3e9ea97.

* Revert "[rubysrc2cpg] General Do-Block Function Fixes (#3676)"

This reverts commit 4ef5cdc.
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.

2 participants