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

Feature/nw23001440/handle param initial value in callstmt #369

Conversation

mattiabonardi
Copy link
Collaborator

Description

Handle initial value of parameters in CALL statement.

     C                   CALL      [PGM_NAME]
     C                   PARM      [INITIAL VALUE]  STR10

that's different to variable declaration on CALL statement

     C                   CALL      [PGM_NAME]
     C                   PARM      [INITIAL VALUE]  STR10     10

In the first case variable STR10 has already declared. The variable is cleaned and reassigned with [INITIAL VALUE]'. In the second case STR10is declared directly in theCALL` statement-

Related to # (issue)
Program MULANGT12 - A01 - P04: CALL doesn't handle initialization value of parameters.

Checklist:

  • There are tests regarding this feature
  • The code follows the Kotlin conventions (run ./gradlew ktlintCheck)
  • The code passes all tests (run ./gradlew check)
  • There is a specific documentation in the docs directory

Copy link
Collaborator

@lanarimarco lanarimarco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

@lanarimarco lanarimarco merged commit 3864ae1 into develop Dec 5, 2023
@mattiabonardi mattiabonardi deleted the feature/NW23001440/handle-params-initial-value-in-callstmt branch December 7, 2023 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants