diff options
author | Vitek Karas <vitek.karas@microsoft.com> | 2021-05-07 10:33:25 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-07 10:33:25 +0300 |
commit | 17dd8b63f0f1752685575f920a3c3db00c51ecb9 (patch) | |
tree | 1bd3dff6c0f37baa5079ebb9da6e77717ea5df92 /test/Mono.Linker.Tests.Cases/UnreachableBlock/ComplexConditions.cs | |
parent | 031093e11a60c54f06348208fdf91b67f49b5f1c (diff) |
Avoid showing hidden lines in warning location (#2017)
In specific cases (see the test added) there might be a warning comming from compiler generated code with no user code to assign to it. In such case the compiler generates a sequence point with a special line number, marking it as "hidden code". Showing that line number is weird and doesn't make any sense. Especially if the warning comes from method which has several overloads, it's basically impossible to tell which one it was.
So instead use the first sequence point with non-hiden line number.
Diffstat (limited to 'test/Mono.Linker.Tests.Cases/UnreachableBlock/ComplexConditions.cs')
0 files changed, 0 insertions, 0 deletions