Skip to content

Add contextual rewrite-pattern selection#955

Open
strub wants to merge 1 commit intomainfrom
rw-pattern-ctxt
Open

Add contextual rewrite-pattern selection#955
strub wants to merge 1 commit intomainfrom
rw-pattern-ctxt

Conversation

@strub
Copy link
Member

@strub strub commented Mar 26, 2026

Allow rewrite patterns to designate a subterm inside a larger context with the [x in pattern] syntax.

This lets rewrite target exactly the occurrence named by the surrounding context, and adds regression coverage for that form.

Allow rewrite patterns to designate a subterm inside a
larger context with the [x in pattern] syntax.

This lets rewrite target exactly the occurrence named by
the surrounding context, and adds regression coverage for
that form.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant