You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
here the @post variable captures is "call_method();\ncall_another_method();" but the matches string is only the first line "call_method();" which gets replaces with an empty string.
However if I modify the delete_all_statements_after_return rule and set the seed_rule as true, then it works as expected.
Any idea on how this can be fixed?
The text was updated successfully, but these errors were encountered:
For this java file.
When I clean this up, It only cleans up the first line and not the second line after return.
Expected output
Actual output
These are the parameters passed
When running the script with trace enabled I see that @post variable captures both the lines after return but
And same is with the rewrite.
here the @post variable captures is "call_method();\ncall_another_method();" but the matches string is only the first line "call_method();" which gets replaces with an empty string.
However if I modify the
delete_all_statements_after_return
rule and set the seed_rule as true, then it works as expected.Any idea on how this can be fixed?
The text was updated successfully, but these errors were encountered: