summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornagachika <nagachika@ruby-lang.org>2025-04-06 13:42:21 +0900
committernagachika <nagachika@ruby-lang.org>2025-04-06 13:42:21 +0900
commit5640fea8aada2380145375a7f9eac2b979fe1258 (patch)
treef45ab703477a72f479409213d63c2be5e748a54e
parent7c315e23983a35d29108d9ba8c914d6320254d43 (diff)
Update prism test snapshots.
This is follow-up for 7c315e23983a35d29108d9ba8c914d6320254d43.
-rw-r--r--test/prism/snapshots/not.txt6
-rw-r--r--test/prism/snapshots/seattlerb/bug_not_parens.txt2
-rw-r--r--test/prism/snapshots/whitequark/not.txt12
3 files changed, 12 insertions, 8 deletions
diff --git a/test/prism/snapshots/not.txt b/test/prism/snapshots/not.txt
index 572e7b13ca..5933a860b0 100644
--- a/test/prism/snapshots/not.txt
+++ b/test/prism/snapshots/not.txt
@@ -77,7 +77,7 @@
│ ├── call_operator_loc: ∅
│ ├── name: :!
│ ├── message_loc: (3,0)-(3,3) = "not"
- │ ├── opening_loc: (3,3)-(3,4) = "("
+ │ ├── opening_loc: ∅
│ ├── arguments: ∅
│ ├── closing_loc: (3,15)-(3,16) = ")"
│ └── block: ∅
@@ -249,7 +249,7 @@
│ ├── call_operator_loc: ∅
│ ├── name: :!
│ ├── message_loc: (22,0)-(22,3) = "not"
- │ ├── opening_loc: (22,3)-(22,4) = "("
+ │ ├── opening_loc: ∅
│ ├── arguments: ∅
│ ├── closing_loc: (25,0)-(25,1) = ")"
│ └── block: ∅
@@ -269,7 +269,7 @@
│ ├── call_operator_loc: ∅
│ ├── name: :!
│ ├── message_loc: (27,0)-(27,3) = "not"
- │ ├── opening_loc: (27,3)-(27,4) = "("
+ │ ├── opening_loc: ∅
│ ├── arguments: ∅
│ ├── closing_loc: (33,2)-(33,3) = ")"
│ └── block: ∅
diff --git a/test/prism/snapshots/seattlerb/bug_not_parens.txt b/test/prism/snapshots/seattlerb/bug_not_parens.txt
index c5157a0ed9..a82ab6ed4d 100644
--- a/test/prism/snapshots/seattlerb/bug_not_parens.txt
+++ b/test/prism/snapshots/seattlerb/bug_not_parens.txt
@@ -19,7 +19,7 @@
├── call_operator_loc: ∅
├── name: :!
├── message_loc: (1,0)-(1,3) = "not"
- ├── opening_loc: (1,3)-(1,4) = "("
+ ├── opening_loc: ∅
├── arguments: ∅
├── closing_loc: (1,5)-(1,6) = ")"
└── block: ∅
diff --git a/test/prism/snapshots/whitequark/not.txt b/test/prism/snapshots/whitequark/not.txt
index 95984ddc06..43e9305b8f 100644
--- a/test/prism/snapshots/whitequark/not.txt
+++ b/test/prism/snapshots/whitequark/not.txt
@@ -25,13 +25,17 @@
│ └── block: ∅
├── @ CallNode (location: (3,0)-(3,5))
│ ├── flags: ∅
- │ ├── receiver: ∅
+ │ ├── receiver:
+ │ │ @ ParenthesesNode (location: (3,3)-(3,5))
+ │ │ ├── body: ∅
+ │ │ ├── opening_loc: (3,3)-(3,4) = "("
+ │ │ └── closing_loc: (3,4)-(3,5) = ")"
│ ├── call_operator_loc: ∅
│ ├── name: :!
│ ├── message_loc: (3,0)-(3,3) = "not"
- │ ├── opening_loc: (3,3)-(3,4) = "("
+ │ ├── opening_loc: ∅
│ ├── arguments: ∅
- │ ├── closing_loc: (3,4)-(3,5) = ")"
+ │ ├── closing_loc: ∅
│ └── block: ∅
└── @ CallNode (location: (5,0)-(5,8))
├── flags: ∅
@@ -49,7 +53,7 @@
├── call_operator_loc: ∅
├── name: :!
├── message_loc: (5,0)-(5,3) = "not"
- ├── opening_loc: (5,3)-(5,4) = "("
+ ├── opening_loc: ∅
├── arguments: ∅
├── closing_loc: (5,7)-(5,8) = ")"
└── block: ∅