Skip to content

Refactor condition checks for global variables - #5405

Closed
MaddipatlaChetan24 wants to merge 1 commit into
uber:mainfrom
MaddipatlaChetan24:patch-1
Closed

Refactor condition checks for global variables#5405
MaddipatlaChetan24 wants to merge 1 commit into
uber:mainfrom
MaddipatlaChetan24:patch-1

Conversation

@MaddipatlaChetan24

Copy link
Copy Markdown
Contributor

Description

Consolidates the two separate path.parent.type === '...' checks in the
Identifier visitor into a single parentType lookup compared against
both target values. This avoids a redundant property access on the
Babel NodePath for MemberExpression/ClassMethod parent checks.
No behavioral change — same nodes are skipped as before.

Scope

Patch: Bug Fix

@CLAassistant

CLAassistant commented Sep 2, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@DianaSuvorova

Copy link
Copy Markdown
Collaborator

Looks like a duplicate of #5409

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.

3 participants