summaryrefslogtreecommitdiff
path: root/test/prism/snapshots/seattlerb/masgn_colon3.txt
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2024-05-03 09:35:32 -0400
committerKevin Newton <kddnewton@gmail.com>2024-05-03 11:11:57 -0400
commit5758e45657f0b2ca8725e67046a1cac92e2e6414 (patch)
tree36a1a99dbdcafc51a7a2d3f01146c9eab76de353 /test/prism/snapshots/seattlerb/masgn_colon3.txt
parent1d51e929b1b10fe9fa109f8a8ebc3b938827271c (diff)
[ruby/prism] Change ConstantPathNode#child to ConstantPathNode#{name,name_loc}
This has been requested for a long time, and I'm finally doing it now. Unfortunately this is a breaking change for all of the APIs. I've added in a Ruby method for `#child` that is deprecated so that existing usage doesn't break, but for everyone else this is going to be a bit of a pain. https://github.com/ruby/prism/commit/9cbe74464e
Diffstat (limited to 'test/prism/snapshots/seattlerb/masgn_colon3.txt')
-rw-r--r--test/prism/snapshots/seattlerb/masgn_colon3.txt14
1 files changed, 6 insertions, 8 deletions
diff --git a/test/prism/snapshots/seattlerb/masgn_colon3.txt b/test/prism/snapshots/seattlerb/masgn_colon3.txt
index 0cf4f8626d..f28ed7ecee 100644
--- a/test/prism/snapshots/seattlerb/masgn_colon3.txt
+++ b/test/prism/snapshots/seattlerb/masgn_colon3.txt
@@ -7,16 +7,14 @@
├── lefts: (length: 2)
│ ├── @ ConstantPathTargetNode (location: (1,0)-(1,3))
│ │ ├── parent: ∅
- │ │ ├── child:
- │ │ │ @ ConstantReadNode (location: (1,2)-(1,3))
- │ │ │ └── name: :A
- │ │ └── delimiter_loc: (1,0)-(1,2) = "::"
+ │ │ ├── name: :A
+ │ │ ├── delimiter_loc: (1,0)-(1,2) = "::"
+ │ │ └── name_loc: (1,2)-(1,3) = "A"
│ └── @ ConstantPathTargetNode (location: (1,5)-(1,8))
│ ├── parent: ∅
- │ ├── child:
- │ │ @ ConstantReadNode (location: (1,7)-(1,8))
- │ │ └── name: :B
- │ └── delimiter_loc: (1,5)-(1,7) = "::"
+ │ ├── name: :B
+ │ ├── delimiter_loc: (1,5)-(1,7) = "::"
+ │ └── name_loc: (1,7)-(1,8) = "B"
├── rest: ∅
├── rights: (length: 0)
├── lparen_loc: ∅