fix(parser): Check comma in JSX expr lazily#10739
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
WalkthroughThe changes relocate the diagnostic enforcement for disallowing the comma operator within JSX expressions from the parser to the semantic checker. Specifically, the function responsible for generating the relevant diagnostic, 📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
🧰 Additional context used🧬 Code Graph Analysis (1)crates/oxc_semantic/src/checker/typescript.rs (2)
⏰ Context from checks skipped due to timeout of 90000ms (14)
🔇 Additional comments (3)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
CodSpeed Instrumentation Performance ReportMerging #10739 will not alter performanceComparing Summary
|
Part of #9705, fixes #10578.
Continuing to treat the following code as an error:
also enables the following code to be parsed:
by deferring the check to the semantic checker.