refactor(formatter): use AstNode::parent method instead of accessing the parent field directly#18427
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Merging this PR will not alter performance
Comparing Footnotes
|
AstNode::parent method instead of accessing the parent field directly
leaysgur
left a comment
There was a problem hiding this comment.
This file still seems to be using the .parent property.
Is that OK? (just grepped , maybe wrong)
Merge activity
|
d40fc7e to
194d384
Compare
05b457c to
b2cf35c
Compare

Prepare for #18428
Additionally, I think this is a good change. Considering there are
grand_parentandancestormethods in the AstNode, this change maintains consistency in accessing related information.