Skip to content

JavaScript - fixing parsing of whitespace before function expressions#6215

Merged
greg-at-moderne merged 1 commit intomainfrom
greg-js-function-expression-whitespace-handling
Oct 29, 2025
Merged

JavaScript - fixing parsing of whitespace before function expressions#6215
greg-at-moderne merged 1 commit intomainfrom
greg-js-function-expression-whitespace-handling

Conversation

@greg-at-moderne
Copy link
Contributor

@greg-at-moderne greg-at-moderne commented Oct 29, 2025

What's changed?

Fixing how function expressions are parsed in JavaScript/TypeScript. Namely and preceding whitespace now goes to the the wrapping StatementExpression.

What's your motivation?

@greg-at-moderne greg-at-moderne self-assigned this Oct 29, 2025
@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite Oct 29, 2025
@greg-at-moderne greg-at-moderne marked this pull request as ready for review October 29, 2025 13:24
@greg-at-moderne greg-at-moderne merged commit 660faac into main Oct 29, 2025
2 checks passed
@greg-at-moderne greg-at-moderne deleted the greg-js-function-expression-whitespace-handling branch October 29, 2025 13:24
@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenRewrite Oct 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant