Skip to content

refactor: work in progress on Expr based NominalPhrase#2295

Draft
hippietrail wants to merge 1 commit intoAutomattic:masterfrom
hippietrail:nominal-phrase-expr
Draft

refactor: work in progress on Expr based NominalPhrase#2295
hippietrail wants to merge 1 commit intoAutomattic:masterfrom
hippietrail:nominal-phrase-expr

Conversation

@hippietrail
Copy link
Collaborator

Issues

N/P

Description

The Pattern version NominalPhrase has some quirks and limitations and is pretty hard to work on.
This PR introduces an Expr version of NominalPhrase built on SequenceExpr.

How Has This Been Tested?

The Pattern's unit tests all pass using the Expr version.
Some unit tests that should pass but do are added to the Pattern to illustrate some of its deficiencies.
Some unit tests that wouldn't work with the Pattern but do with the Expr are added.

So far the Expr is only used in the linters and other Exprs. There's a few other places the Pattern is still used that have to be switched over.

Checklist

  • I have performed a self-review of my own code
  • I have added tests to cover my changes

@github-actions
Copy link

github-actions bot commented Feb 4, 2026

This pr has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 14 days. Thank you for your contribution!

@github-actions github-actions bot added the stale label Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant