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
cobol calls_out never sees CALL 'LITERAL': the literal shield blanks the program name first #3393
Found while implementing #3362. The detector applies _apply_literal_shield before running calls_out, so in CALL 'SUBPROG' USING X the quoted program name is blanked, and cobol's CALL\s+['\"]?(name) never matches. Only CALL WS-PGM (identifier) and PERFORM reach calls_out_to.
Repro: splice a paragraph containing CALL 'PROG2'. and see calls_out_to without PROG2. The strict test passes because it runs the bare regex, not the shielded block.
Impact: program-to-program calls are invisible to calls_out_to, the #3328 resolver and the #3333 file graph. The #3200 mainframe resolver reads CALL sites separately, so call_site_data and the 'call' edges are unaffected.
Fix shape: a quoted-literal exception for invocation verbs in the shield (a COBOL CALL literal is the callee name, as a JCL PGM= is), or run cobol's calls_out before the shield with the CALL-literal branch only. Needs a golden/rosetta check, because COBOL calls_out_to gains entries.
Activity
Engine: COBOL CALL 'LITERAL' reaches calls_out_to (#3393) (#3440)