Skip to content

Add regression test: #13114, SynPat.Record and QuoteExpr traversal#19468

Open
T-Gro wants to merge 8 commits intomainfrom
regression-test/issue13114
Open

Add regression test: #13114, SynPat.Record and QuoteExpr traversal#19468
T-Gro wants to merge 8 commits intomainfrom
regression-test/issue13114

Conversation

@T-Gro
Copy link
Copy Markdown
Member

@T-Gro T-Gro commented Mar 24, 2026

Fixes #13114

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@T-Gro T-Gro requested a review from a team as a code owner March 24, 2026 10:25
@T-Gro T-Gro added NO_RELEASE_NOTES Label for pull requests which signals, that user opted-out of providing release notes AI-Issue-Regression-PR PR adding regression test for a closed issue labels Mar 24, 2026
@T-Gro T-Gro requested a review from abonie March 24, 2026 10:25
@T-Gro T-Gro enabled auto-merge (squash) March 24, 2026 10:25
@github-actions
Copy link
Copy Markdown
Contributor

⚠️ Release notes required, but author opted out

Warning

Author opted out of release notes, check is disabled for this pull request.
cc @dotnet/fsharp-team-msft

@T-Gro T-Gro force-pushed the regression-test/issue13114 branch from 5ffaa13 to 05b03f5 Compare March 24, 2026 11:51
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@T-Gro T-Gro force-pushed the regression-test/issue13114 branch from 05b03f5 to 3dabfa6 Compare March 24, 2026 11:53
…d FromParseError

- Remove the SRTP matrix inverse test from MemberConstraints.fs: it references
  issue #9382 and is unrelated to this PR (#13114).
- Add SynPat.IsInst test: verifies defaultTraverse descends into the SynType
  inside :? type-test patterns.
- Add SynPat.FromParseError test: verifies defaultTraverse descends into the
  nested pattern wrapped by FromParseError.

Per reviewer feedback from @abonie.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

Commit pushed: c386b9b

Generated by Regression PR Shepherd

@github-actions

This comment has been minimized.

@T-Gro T-Gro requested a review from abonie March 30, 2026 14:22
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

Commit pushed: 87c643a

Generated by Regression PR Shepherd

…g still present)

SynPat.IsInst is not in the traversePat defaultTraverse in ServiceParseTreeWalk.fs,
so the test asserting it works was failing on all platforms.

Keeping Record, QuoteExpr, and Paren (FromParseError-labelled) tests which pass.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

Commit pushed: f8b720a

Generated by Regression PR Shepherd

@github-actions

This comment has been minimized.

…Traverse

Add SynPat.IsInst and SynPat.FromParseError cases to the defaultTraverse
function in traversePat (ServiceParseTreeWalk.fs):
- SynPat.IsInst: traverses into the SynType via traverseSynType
- SynPat.FromParseError: traverses into the wrapped SynPat

Add regression test for SynPat.IsInst traversal using :? type test pattern.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

This comment has been minimized.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

Commit pushed: 8265f62

Generated by Regression PR Shepherd

@github-actions
Copy link
Copy Markdown
Contributor

🤖 This is an automated response from Regression PR Shepherd.

Addressed @auduchinok's review feedback: renamed pat to ty in the SynPat.IsInst case in ServiceParseTreeWalk.fs, since the bound value is a SynType (the type being checked against in a :? Type pattern), not a SynPat.

| SynPat.IsInst(ty, _) -> traverseSynType path ty

Generated by Regression PR Shepherd ·

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI-Issue-Regression-PR PR adding regression test for a closed issue NO_RELEASE_NOTES Label for pull requests which signals, that user opted-out of providing release notes

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

defaultTraverse for SynPat in SyntaxTraverse.Traverse doesn't walk down all SynPats

3 participants