Allow not finding attribute data for more cases that we don't care about (#72620)
authorJeremy Koritzinsky <jekoritz@microsoft.com>
Thu, 21 Jul 2022 20:38:06 +0000 (13:38 -0700)
committerGitHub <noreply@github.com>
Thu, 21 Jul 2022 20:38:06 +0000 (13:38 -0700)
commit24f3234e938a75381d317bd5f5e2a2bb7a7069e2
tree7c79a5cced1547c9286a0d9ba0a2d2c1ac69ca42
parentc895d957227c17094dac52ba23d8cb50f948b074
Allow not finding attribute data for more cases that we don't care about (#72620)

* Allow not finding attribute data for more cases that we don't care about

This will fix the upstream repo intake of dotnet/runtime by allowing us to fall back to null for cases where Roslyn does things that we aren't expecting with the "ContainingSymbol" value.

* Update test
src/libraries/System.Runtime.InteropServices/gen/LibraryImportGenerator/Analyzers/SyntaxExtensions.cs
src/libraries/System.Runtime.InteropServices/tests/LibraryImportGenerator.UnitTests/NativeMarshallingAttributeAnalyzerTests.cs