Repository navigation
fix(sourcegen): infer generic method types from any MethodDataSource row shape #7143
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 26 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
c04cb43
fix(sourcegen): infer generic method types from any MethodDataSource …
thomhurst 113caa7
fix(sourcegen): share MethodDataSource member resolution between fact…
thomhurst b6c4265
fix(sourcegen): call the chosen MethodDataSource overload the way ref…
thomhurst 316efc9
test(sourcegen): cover an exact argument type beating an implicit con…
thomhurst 9a53b50
fix(sourcegen): keep the type of MethodDataSource Arguments values
thomhurst 2cce80f
fix: pick the MethodDataSource overload that accepts a null argument …
thomhurst fa94fe3
fix: handle field data sources, parameters without Arguments, and nul…
thomhurst 1bf7dc9
fix: keep private field data sources on the reflection fallback, brea…
thomhurst b9a65ec
fix(sourcegen): keep a leading CancellationToken before a single tupl…
thomhurst 90058d9
test(sourcegen): cover an overloaded data method selected without Arg…
thomhurst a105d29
fix(sourcegen): throw a descriptive error for a missing data source a…
thomhurst 61230b6
perf(sourcegen): look up MethodDataSource row wrapper types once per …
thomhurst 1945e14
fix(sourcegen): read private data source fields and properties in a t…
thomhurst 6ba76de
fix(sourcegen): split a private object-typed data source into rows by…
thomhurst 02a9e8c
fix(core): keep a null private data member as one row holding null
thomhurst 13a95a0
test: cover a private data source member on a generic class
thomhurst aa09236
Merge remote-tracking branch 'origin/main' into fix/issue-7108-generi…
thomhurst d41ef61
Merge remote-tracking branch 'origin/main' into fix/issue-7108-generi…
thomhurst e4eade4
Merge remote-tracking branch 'origin/main' into fix/issue-7108-generi…
thomhurst cf851aa
fix(sourcegen): pick the MethodDataSource overload reflection mode ca…
thomhurst d265b7d
fix(sourcegen): split object-typed fields by runtime value; skip infe…
thomhurst 81a9d78
fix: guard the overload specificity checks instead of relying on Debu…
thomhurst e2d678f
test: cover inherited protected data sources and a generic test with …
thomhurst c71d27e
test: read the instance object field through [MethodDataSource]; fix …
thomhurst 890cfc8
Merge remote-tracking branch 'origin/main' into fix/issue-7108-generi…
thomhurst 93db536
test(analyzers): pin the generic data method lookup in TUnit0001
thomhurst 25c8c29
Merge origin/main; escape keyword-named data source members; fix net4…
thomhurst 04dc119
test: drop the reflection-mode skip now that #7173 is fixed
thomhurst 51792a4
fix(sourcegen): infer generic row types through only the delegate lay…
thomhurst d3035e5
Merge remote-tracking branch 'origin/main' into fix/issue-7108-generi…
thomhurst 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
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
796 changes: 637 additions & 159 deletions
796
src/TUnit.Core.SourceGenerator/Generators/TestMetadataGenerator.cs
Large diffs are not rendered by default.
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
Oops, something went wrong.
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.