@codemod/abap-subroutine-pass-by-reference
Rewrite ABAP FORM subroutine signatures to remove explicit pass-by-value wrappers from USING and CHANGING parameters. The codemod converts VALUE(parameter) declarations into plain parameter names so subroutine parameters are passed by reference.
Installation
bash
Usage
This codemod targets ABAP source files matching **/*.abap and rewrites FORM declarations like:
abap
into:
abap
Preserve behavior:
- Only
FORMdefinitions are rewritten. VALUE(...)in comments is left unchanged.PERFORMcalls and non-FORMdeclarations are left unchanged.
Implementation note:
- ABAP is not a parser-backed JSSG language here, so the transform uses a source-text rewrite scoped to
FORM ... .statements.
Development
bash
License
MIT