Skip to content

Update JsxOpeningElement type#2469

Merged
andrewbranch merged 1 commit intomicrosoft:mainfrom
ArnaudBarre:jsxOpeningElement-type
Jan 27, 2026
Merged

Update JsxOpeningElement type#2469
andrewbranch merged 1 commit intomicrosoft:mainfrom
ArnaudBarre:jsxOpeningElement-type

Conversation

@ArnaudBarre
Copy link
Copy Markdown
Contributor

Given it can only be the child of a JsxElement, I think it's a mistake to mark it as an Expression

Copilot AI review requested due to automatic review settings January 11, 2026 19:54
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR corrects the type hierarchy for JsxOpeningElement to reflect that it is a structural component of a JSX element rather than a standalone expression.

Changes:

  • Updated JsxOpeningElement interface to extend Node instead of Expression

@andrewbranch
Copy link
Copy Markdown
Member

It's Expression in Strada, but it ends up not mattering. I agree it doesn’t make sense to consider it an expression.

@andrewbranch andrewbranch added this pull request to the merge queue Jan 27, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Jan 27, 2026
@andrewbranch andrewbranch added this pull request to the merge queue Jan 27, 2026
Merged via the queue into microsoft:main with commit d00b92d Jan 27, 2026
27 of 28 checks passed
Copilot AI pushed a commit that referenced this pull request Feb 25, 2026
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.

4 participants