Skip to content
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

Allow non-IMemberDefinition sources to be origin for event methods #102613

Merged
merged 2 commits into from
May 23, 2024

Conversation

jtschuster
Copy link
Member

From dotnet/sdk#41096 (comment).

Should fix the issues arising in dotnet/sdk#41096. We should follow this up with a test that exercises this code path.

@jtschuster jtschuster requested review from sbomer and vitek-karas May 23, 2024 15:53
@jtschuster jtschuster requested a review from marek-safar as a code owner May 23, 2024 15:53
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-Tools-ILLink .NET linker development as well as trimming analyzers label May 23, 2024
@dotnet-policy-service dotnet-policy-service bot added the linkable-framework Issues associated with delivering a linker friendly framework label May 23, 2024
Copy link
Contributor

Tagging subscribers to this area: @agocke, @sbomer, @vitek-karas
See info in area-owners.md if you want to be subscribed.

@jtschuster jtschuster merged commit 59879ad into dotnet:main May 23, 2024
76 checks passed
jtschuster added a commit to jtschuster/runtime that referenced this pull request May 28, 2024
agocke pushed a commit that referenced this pull request May 29, 2024
jtschuster added a commit that referenced this pull request May 30, 2024
Adds a regression test for the issue that was fixed in #102613.

The assembly level attribute marks the members on the referenced type, and the assembly is the MessageOrigin for the marking.

I confirmed this fails with before #102613.
Ruihan-Yin pushed a commit to Ruihan-Yin/runtime that referenced this pull request May 30, 2024
…otnet#102613)

There are some cases where an event may be marked by something that is not an IMemberDefinition, for example, an assembly level attribute. dotnet#102528 made an assumption that this was not possible and threw in those cases. This reverts the change related to that assumption.

Co-authored-by: Sven Boemer <[email protected]>
Ruihan-Yin pushed a commit to Ruihan-Yin/runtime that referenced this pull request May 30, 2024
)

Adds a regression test for the issue that was fixed in dotnet#102613.

The assembly level attribute marks the members on the referenced type, and the assembly is the MessageOrigin for the marking.

I confirmed this fails with before dotnet#102613.
@github-actions github-actions bot locked and limited conversation to collaborators Jun 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Tools-ILLink .NET linker development as well as trimming analyzers linkable-framework Issues associated with delivering a linker friendly framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants