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

Shadow variables inside loops and if statements #387

Merged
merged 6 commits into from
May 12, 2024
Merged

Shadow variables inside loops and if statements #387

merged 6 commits into from
May 12, 2024

Commits on May 11, 2024

  1. Configuration menu
    Copy the full SHA
    48d3b36 View commit details
    Browse the repository at this point in the history
  2. Shadow variables inside for loops and if statements

    In the past, we used the shadowing mechanism only when entering functions. Now, we do if in for loops and if statements too.
    
    Note that scopes often don't start at the blocks (curly braces). In a function, arguments are part of the function body scope. In a for-loop, the init declaration is part if the for-loop body too, even if there are curly braces. For this reason, we don't apply shadowing at the block level.
    laurentlb committed May 11, 2024
    Configuration menu
    Copy the full SHA
    a803328 View commit details
    Browse the repository at this point in the history
  3. fix build

    laurentlb committed May 11, 2024
    Configuration menu
    Copy the full SHA
    dc6e89c View commit details
    Browse the repository at this point in the history
  4. update .expected test files

    laurentlb committed May 11, 2024
    Configuration menu
    Copy the full SHA
    7b0fbd3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    871c787 View commit details
    Browse the repository at this point in the history

Commits on May 12, 2024

  1. update linux fsproj

    laurentlb committed May 12, 2024
    Configuration menu
    Copy the full SHA
    6395415 View commit details
    Browse the repository at this point in the history