Handle a null operation type (for example if the null literal is being cast/assigned...
authorJeremy Koritzinsky <jekoritz@microsoft.com>
Wed, 14 Jun 2023 22:06:07 +0000 (15:06 -0700)
committerGitHub <noreply@github.com>
Wed, 14 Jun 2023 22:06:07 +0000 (15:06 -0700)
commitf2e5fd867c1f89cd5f7fd8bb2d0a88645f748e50
treec31f4caa100838c36101fb60304f4cf499d87354
parentd2a742cbcca4df37ddd1e9fc1569343367425526
Handle a null operation type (for example if the null literal is being cast/assigned to a ComImport interface type). (#87566)

Co-authored-by: Jackson Schuster <36744439+jtschuster@users.noreply.github.com>
src/libraries/System.Runtime.InteropServices/gen/ComInterfaceGenerator/Analyzers/RuntimeComApiUsageWithSourceGeneratedComAnalyzer.cs
src/libraries/System.Runtime.InteropServices/tests/ComInterfaceGenerator.Unit.Tests/RuntimeComApiUsageWithSourceGeneratedComTests.cs