Skip to content

Conversation

@agocke
Copy link
Member

@agocke agocke commented Jul 19, 2022

The syntax node scope should be the innermost node, otherwise
GetSymbolInfo will often return null. As an example, GetSymbolInfo will
return null for an ArgumentSyntax node, but the underlying expression
will likely resolve into a symbol.

Also adds proper null checks in case any of the providers return null.

The syntax node scope should be the innermost node, otherwise
GetSymbolInfo will often return null. As an example, GetSymbolInfo will
return null for an ArgumentSyntax node, but the underlying expression
will likely resolve into a symbol.

Also adds proper null checks in case any of the providers return null.
@agocke agocke requested a review from tlakollo July 19, 2022 05:29
Copy link
Contributor

@tlakollo tlakollo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks!

@agocke agocke merged commit 7a61266 into dotnet:main Jul 20, 2022
@agocke agocke deleted the fix-nullable branch July 20, 2022 15:40
agocke added a commit to dotnet/runtime that referenced this pull request Nov 16, 2022
The syntax node scope should be the innermost node, otherwise
GetSymbolInfo will often return null. As an example, GetSymbolInfo will
return null for an ArgumentSyntax node, but the underlying expression
will likely resolve into a symbol.

Also adds proper null checks in case any of the providers return null.

Commit migrated from dotnet/linker@7a61266
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants