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

fix: fix variable definitions inside embedded copybooks #2418

Merged

Commits on Aug 5, 2024

  1. fix: fix variable definitions inside embedded copybooks

    fix variable definitions inside embedded copybooks.
    So, for below program . Check the copybook content from the added usecase test
           IDENTIFICATION DIVISION.
           PROGRAM-ID. ABCDEF.
           DATA DIVISION.
           WORKING-STORAGE SECTION.
           copy AMAZE.
           copy AMAZE2.
           PROCEDURE DIVISION.
    
     The produced AST should be like
     COPYNODE AMAZE
          | -----> VAR NODE IN SIDE AMAZE COPYBOOK
     COPYNODE AMAZE2
         |-------> VAR NODE IN SIDE AMAZE2 COPYBOOK
         |-------> COPYNODE AMAZE 3
         |                  |-----> VAR NODE IN SIDE AMAZE3 COPYBOOK
         |-------->  VAR NODE IN SIDE AMAZE2 COPYBOOK
    
    Signed-off-by: ap891843 <aman.prashant@broadcom.com>
    ap891843 committed Aug 5, 2024
    Configuration menu
    Copy the full SHA
    e706c5c View commit details
    Browse the repository at this point in the history