Skip to content

Enter node before scope for all types in semantic #4276

@overlookmotel

Description

@overlookmotel

We recently changed Visit to call enter_node before enter_scope (#4203).

This change is mostly also reflected in SemanticBuilder's Visit method overrides, but a few still have enter_scope before enter_node. These are:

  • visit_for_statement
  • visit_for_in_statement
  • visit_for_of_statement

We should alter them to align with Visit's default behavior, to avoid surprise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory - Bug

    Type

    No type

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions