Skip to content

#323 #325 Narrow syntax providers and honor CancellationToken - #335

Merged
sanelli merged 3 commits into
mainfrom
323-narrow-mappagenerator-syntax-provider-with-forattributewithmetadataname
Aug 9, 2026
Merged

#323 #325 Narrow syntax providers and honor CancellationToken#335
sanelli merged 3 commits into
mainfrom
323-narrow-mappagenerator-syntax-provider-with-forattributewithmetadataname

Conversation

@sanelli

@sanelli sanelli commented Aug 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • Narrow both incremental pipelines with ForAttributeWithMetadataName (mapper + DI), requiring partial class declarations (#323).
  • Propagate cooperative CancellationToken checks through hot strategy, collection, and DI discovery paths (#325).
  • Document discovery/cancellation conventions, align MP00070 docs with provider filtering, and bump to 10.2.0-alpha.68.

Test plan

  • Generator discovery tests for unrelated attributes and DI IsPartial filtering
  • Cancelled-token harness test + MP00070 DI algorithm harness coverage
  • Full .\Scripts\RunTestsAndReportCoverage.ps1 (2969 passed; coverage ≥ baseline)

Closes #323
Closes #325

sanelli and others added 3 commits August 9, 2026 11:22
…paths.

Use ForAttributeWithMetadataName with IsPartial for mapper and DI discovery, add cooperative cancellation checks, and cover attribute-driven discovery plus cancelled-token behavior.

Co-authored-by: Cursor <cursoragent@cursor.com>
Remove unused syntax HasMappa helpers and cover MP00070 via the DI algorithm harness for non-partial registrars.

Co-authored-by: Cursor <cursoragent@cursor.com>
Document ForAttributeWithMetadataName partial discovery and CancellationToken conventions; align MP00070 docs with provider filtering.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown

Code coverage

Compared against the latest published coverage history from the code coverage gist.

Metric Baseline PR Δ Trend
Line 98.4% 98.4% 0 =
Branch 91% 91% 0 =
Method 100% 100% 0 =

No coverage metric dropped by more than 1 percentage point(s) versus baseline.

@sanelli
sanelli merged commit a477881 into main Aug 9, 2026
1 check passed
@sanelli
sanelli deleted the 323-narrow-mappagenerator-syntax-provider-with-forattributewithmetadataname branch August 9, 2026 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant