Skip to content

Update Add Parameter to support global statements#44445

Merged
sharwell merged 1 commit intodotnet:features/SimpleProgramsfrom
sharwell:add-parameter
May 21, 2020
Merged

Update Add Parameter to support global statements#44445
sharwell merged 1 commit intodotnet:features/SimpleProgramsfrom
sharwell:add-parameter

Conversation

@sharwell
Copy link
Contributor

Fixes #44271

@sharwell sharwell requested a review from a team as a code owner May 20, 2020 21:47
foreach (var methodDeclaration in documentLookup)
{
var methodNode = syntaxRoot.FindNode(methodDeclaration.Locations[0].SourceSpan);
var methodNode = syntaxRoot.FindNode(methodDeclaration.Locations[0].SourceSpan, getInnermostNodeForTie: true);
Copy link
Contributor

Choose a reason for hiding this comment

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

we might want to audit most of these. we always knew and used getInnermostNodeForTie for expressions (because of teh argument/expression duality), but now we'll have this a lot for statements, so likely most calls are suspect :)

@sharwell sharwell merged commit a17d627 into dotnet:features/SimplePrograms May 21, 2020
@sharwell sharwell deleted the add-parameter branch May 21, 2020 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants