dotnet / dotnet/linker

Unify internal tracking of warning context

Open
#2,172 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
392
Forks
128
Avg merge
2d 10h
Merged PRs (30d)
2

Description

Opening this to track the future improvements discussed in https://github.com/mono/linker/issues/2163:

We currently have a few ways to track the warning context/source (or the reason that we marked something): DependencyInfo, MarkScopeStack, and ReflectionPatternContext. When we go to mark a method, for example, we use this information to determine:
- which warnings to generate
- which warning origin to use, and
- which RequiresUnreferencedCodeAttributes to look for that may silence the warning

We should consider replacing these with one solution that covers all of those use cases. See the discussion in https://github.com/mono/linker/issues/2163 for more context.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.