Handle generic types as parameters of attributes in MetadataDecoder#70151
Merged
jjonescz merged 25 commits intodotnet:mainfrom Oct 23, 2023
Merged
Handle generic types as parameters of attributes in MetadataDecoder#70151jjonescz merged 25 commits intodotnet:mainfrom
MetadataDecoder#70151jjonescz merged 25 commits intodotnet:mainfrom
Conversation
8a29dff to
d280b1e
Compare
AlekseyTs
reviewed
Oct 2, 2023
AlekseyTs
reviewed
Oct 2, 2023
AlekseyTs
reviewed
Oct 2, 2023
src/Compilers/CSharp/Portable/Symbols/Attributes/PEAttributeData.cs
Outdated
Show resolved
Hide resolved
AlekseyTs
reviewed
Oct 3, 2023
src/Compilers/VisualBasic/Test/Emit/Attributes/AttributeTests.vb
Outdated
Show resolved
Hide resolved
AlekseyTs
reviewed
Oct 3, 2023
src/Compilers/CSharp/Portable/Symbols/Attributes/PEAttributeData.cs
Outdated
Show resolved
Hide resolved
AlekseyTs
reviewed
Oct 3, 2023
Contributor
|
Done with review pass (commit 1) |
This reverts commit d280b1e except tests.
AlekseyTs
reviewed
Oct 6, 2023
AlekseyTs
reviewed
Oct 6, 2023
AlekseyTs
reviewed
Oct 6, 2023
AlekseyTs
reviewed
Oct 6, 2023
AlekseyTs
reviewed
Oct 6, 2023
AlekseyTs
reviewed
Oct 6, 2023
Contributor
Contributor
Contributor
|
Done with review pass (commit 4), tests are not looked at. |
This was referenced Oct 13, 2023
Closed
Closed
AlekseyTs
reviewed
Oct 16, 2023
src/Compilers/CSharp/Portable/Symbols/Source/SourceAssemblySymbol.cs
Outdated
Show resolved
Hide resolved
AlekseyTs
reviewed
Oct 16, 2023
src/Compilers/VisualBasic/Portable/Symbols/Metadata/PE/PEAssemblySymbol.vb
Outdated
Show resolved
Hide resolved
AlekseyTs
reviewed
Oct 16, 2023
src/Compilers/VisualBasic/Portable/Symbols/Metadata/PE/PEAssemblySymbol.vb
Outdated
Show resolved
Hide resolved
AlekseyTs
reviewed
Oct 16, 2023
src/Compilers/VisualBasic/Portable/Symbols/Source/SourceAssemblySymbol.vb
Outdated
Show resolved
Hide resolved
AlekseyTs
reviewed
Oct 16, 2023
src/Compilers/VisualBasic/Portable/Symbols/Source/SourceModuleSymbol.vb
Outdated
Show resolved
Hide resolved
Contributor
|
Done with review pass (commit 23) |
Contributor
|
@dotnet/roslyn-compiler For the second review |
Contributor
|
@dotnet/roslyn-compiler For the second review |
Member
|
@333fred PTAL |
Contributor
|
@333fred, @dotnet/roslyn-compiler For the second review |
333fred
reviewed
Oct 23, 2023
Member
333fred
left a comment
There was a problem hiding this comment.
Generally looks good, but I have a question on the structure of the new methods.
333fred
approved these changes
Oct 23, 2023
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #66370.
Fixes #55190.
PEAttributeDatahas the attribute symbol, so this PR changesMetadataDecoderto use attribute argument types from that symbol (instead of reading the metadata directly), hence all cases are handled - including the previously missing generic type parameters.PIA attribute validation has also been refactored. Previously, it decoded attributes in all cases, now it does that only for
SourceAssemblySymbols; whereas it consults metadata directly forPEAssemblySymbols. See #70151 (comment).