dotnet / dotnet/linker

Stop keeping everything in types with non-understood DebuggerDisplayAttribute

Open
#1,873 3 comments 0 reactions 0 assignees View on GitHub
area-Linker: Steps
Dominant language
C#
Stars
392
Forks
128
Avg merge
2d 10h
Merged PRs (30d)
2

Description

The linker tries to figure out which are the members referenced by the argument of a `DebuggerDisplayAttribute` by performing regex-match on strings inside curly braces.
Whenever the argument is not understood by the linker, the entire type where the attribute annotation was found is kept -- note that this doesn't necessarily save us from removing things which might be needed when debugging, since you can reference members on _any_ type. This ends up keeping more than what is strictly necessary, since strings within curly braces in a `DebuggerDisplayAttribute` can only refer to [fields, properties or methods](https://docs.microsoft.com/en-us/visualstudio/debugger/using-the-debuggerdisplay-attribute?view=vs-2019).

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.