-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Fix source generator diagnostics to support #pragma warning disable #124994
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
e95c4ad
Fix source generator diagnostics to support #pragma warning disable
eiriktsarpalis 6506135
Add tests verifying diagnostic LocationKind.SourceFile for all genera…
eiriktsarpalis 4c7bb58
Add incremental generation tests for RegexGenerator
eiriktsarpalis 7a2b000
Refactor diagnostic emission lambdas into named EmitDiagnostics methods
eiriktsarpalis a4e500e
Extract source model projections into explicit IVP bindings
eiriktsarpalis 091625e
Extract diagnostic pipelines into explicit IVP projections
eiriktsarpalis bdfaf17
Restructure Regex generator to use deeply equatable result record
eiriktsarpalis 8e7da78
Restructure Regex generator to use deeply equatable result record
eiriktsarpalis 8547065
Simplify Regex pipeline with mutable accumulator pattern
eiriktsarpalis b34eef0
Eliminate per-item diagnostic arrays in Regex generator pipeline
eiriktsarpalis 96b5918
Use nullable ImmutableArray.Builder for diagnostics in ParseAndGenera…
eiriktsarpalis ad8f67d
Restore accidentally removed runtextpos assignment in FindFirstChar e…
eiriktsarpalis d1f6520
Fix logger generator incrementality with ImmutableEquatableArray
eiriktsarpalis 440461f
Standardize on ImmutableArray.Builder over List<> for building Immuta…
eiriktsarpalis b1a6b90
Move diagnostic deduplication into collect phase of logger pipeline
eiriktsarpalis 758d2df
Improve pragma suppression tests and remove unused shared DiagnosticInfo
eiriktsarpalis 1db4a0c
Test pragma suppression with dual-location diagnostics
eiriktsarpalis 8f9bbcd
Minimize Regex generator diff: segregate diagnostics from source output
eiriktsarpalis 850a8ea
Refine Regex generator Results to ImmutableEquatableArray without dia…
eiriktsarpalis cb51e3b
Revert "Refine Regex generator Results to ImmutableEquatableArray wit…
eiriktsarpalis e0708f2
Remove redundant line.
eiriktsarpalis 0acbfb2
Refine Regex generator Results to filtered ImmutableArray without dia…
eiriktsarpalis 8f2157f
Lift diagnostics IVP projection into named variable binding
eiriktsarpalis baf2d63
Replace var with explicit type for collected pipeline variable
eiriktsarpalis 1d6b1bc
Remove Location from RegexPatternAndSyntax and RegexMethod records
eiriktsarpalis 1708293
Remove unnecessary (object) casts from second Select lambda
eiriktsarpalis 466a960
Lift SupportsCodeGeneration check into first Select, eliminating (Reg…
eiriktsarpalis 3637180
Restore Location in RegexPatternAndSyntax record
eiriktsarpalis 0bd7f87
Merge branch 'main' into fix/sourcegen-suppressions
eiriktsarpalis 5962188
Address ericstj feedback: remove DiagnosticInfo.cs, fix dedup, add tests
eiriktsarpalis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
60 changes: 0 additions & 60 deletions
60
src/libraries/Common/src/SourceGenerators/DiagnosticInfo.cs
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.