[release/6.0] Support duplicated type names with src gen (#58766)
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Wed, 8 Sep 2021 21:18:53 +0000 (15:18 -0600)
committerGitHub <noreply@github.com>
Wed, 8 Sep 2021 21:18:53 +0000 (15:18 -0600)
commit4cf387b5af7dfba77c4a6f9b8e30bad46fc735fc
tree500462ecd8fb08352044ea28292f63e40fccf33f
parentf037ca5bc40148550dbd9af6b2749bd5ab494a56
[release/6.0] Support duplicated type names with src gen (#58766)

* Support duplicated type names with src gen

* Move helpers to common location

Co-authored-by: Steve Harter <steveharter@users.noreply.github.com>
src/libraries/Common/src/Roslyn/GetBestTypeByMetadataName.cs [new file with mode: 0644]
src/libraries/System.Text.Json/gen/JsonSourceGenerator.Parser.cs
src/libraries/System.Text.Json/gen/Reflection/MetadataLoadContextInternal.cs
src/libraries/System.Text.Json/gen/Reflection/RoslynExtensions.cs
src/libraries/System.Text.Json/gen/System.Text.Json.SourceGeneration.csproj
src/libraries/System.Text.Json/tests/System.Text.Json.SourceGeneration.Unit.Tests/JsonSourceGeneratorTests.cs