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
{{ message }}
Repository navigation
calls_out_to is meaningless for COBOL: generic name( pattern captures subscripts and intrinsics, never PERFORM/CALL targets #3202
bugUnintended behavior or logic failure in the enginecore-engineModifications to the central physics and parsing enginelegacy-modernizationCOBOL refractor, dead-code extraction, and JCL forging
Found by the #3120 differential. function_data.calls_out_to comes from one generic pattern, \b([a-zA-Z_]\w*)\s*\(, with a C/Python keyword ignore list (detector.py). COBOL has no name( call syntax, so for COBOL the column only ever holds the word before an open parenthesis:
subscripts: WS-TAB(I) → TAB
intrinsic functions: FUNCTION CURRENT-DATE(…) → DATE
CICS options: PROGRAM(, COMMAREA(
words like UNTIL / MONTH, e.g. zopeneditor SAM2.cbl 310-CRUNCH-LOOP → ["UNTIL", "MONTH"]
It never contains a PERFORM / GO TO / CALL target.
Options: state calls_out_to as not-applicable for COBOL (empty rather than wrong), or give it a COBOL form (PERFORM/GO TO targets within the program, CALL targets across). Whichever is chosen should apply to the other mainframe languages with the same shape. Related: the call-edge issue filed alongside this one.
bugUnintended behavior or logic failure in the enginecore-engineModifications to the central physics and parsing enginelegacy-modernizationCOBOL refractor, dead-code extraction, and JCL forging
Activity