Skip to content

Conversation

@TysonAndre
Copy link
Contributor

Clarify phpdoc of parseDelimitedList

Don't assign a DelimitedList to node->nameParts,
it's declared as an array.
(Has no side effects, this is overwritten afterwards unless nameParts was null)

@msftclas
Copy link

@TysonAndre,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by Microsoft. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

return $name;
}, $node);
if ($node->nameParts === null && $node->globalSpecifier === null && $node->relativeSpecifier === null) {
return null;
Copy link
Member

Choose a reason for hiding this comment

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

Previously it would return null if $node->nameParts was null, ie if parseDelimitedList returned null. I think this check should be for $nameParts now? Otherwise I agree with not using $node->nameParts to hold a temporary value.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it should. Missed that.

Clarify phpdoc of parseDelimitedList

Don't assign a DelimitedList to node->nameParts,
it's declared as an array.
(Has no side effects, this is overwritten afterwards unless nameParts was null)
@TysonAndre TysonAndre force-pushed the Node-parser-partial-nits branch from 841bbda to 1f29666 Compare September 18, 2017 20:50
@roblourens
Copy link
Member

Thanks!

@roblourens roblourens merged commit 7acdeeb into microsoft:master Sep 18, 2017
@TysonAndre TysonAndre deleted the Node-parser-partial-nits branch June 19, 2018 02:16
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.

4 participants