summaryrefslogtreecommitdiff
path: root/test/prism/snapshots/whitequark/args.txt
diff options
context:
space:
mode:
authorJemma Issroff <jemmaissroff@gmail.com>2023-10-31 17:00:28 -0300
committergit <svn-admin@ruby-lang.org>2023-11-01 14:40:44 +0000
commitd0625099e0f691f44fb4c796d8d497d818bf7c8e (patch)
tree223ed8f212c6778c32196545c11ffd9a612ec383 /test/prism/snapshots/whitequark/args.txt
parent717fb5bb0b0d9aa4dbc636ea87037703a941b34f (diff)
[ruby/prism] Split KeywordParameterNode into Optional and Required
Prior to this commit, KeywordParameterNode included both optional and required keywords. With this commit, it is split in two, with `OptionalKeywordParameterNode`s no longer having a value field. https://github.com/ruby/prism/commit/89084d9af4
Diffstat (limited to 'test/prism/snapshots/whitequark/args.txt')
-rw-r--r--test/prism/snapshots/whitequark/args.txt13
1 files changed, 6 insertions, 7 deletions
diff --git a/test/prism/snapshots/whitequark/args.txt b/test/prism/snapshots/whitequark/args.txt
index 1568396d9a..bc9d42da70 100644
--- a/test/prism/snapshots/whitequark/args.txt
+++ b/test/prism/snapshots/whitequark/args.txt
@@ -369,7 +369,7 @@
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 1)
- │ │ │ └── @ KeywordParameterNode (location: (23,7)-(23,13))
+ │ │ │ └── @ RequiredKeywordParameterNode (location: (23,7)-(23,13))
│ │ │ ├── name: :foo
│ │ │ ├── name_loc: (23,7)-(23,11) = "foo:"
│ │ │ └── value:
@@ -400,13 +400,13 @@
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 2)
- │ │ │ ├── @ KeywordParameterNode (location: (25,7)-(25,13))
+ │ │ │ ├── @ RequiredKeywordParameterNode (location: (25,7)-(25,13))
│ │ │ │ ├── name: :foo
│ │ │ │ ├── name_loc: (25,7)-(25,11) = "foo:"
│ │ │ │ └── value:
│ │ │ │ @ IntegerNode (location: (25,12)-(25,13))
│ │ │ │ └── flags: decimal
- │ │ │ └── @ KeywordParameterNode (location: (25,15)-(25,21))
+ │ │ │ └── @ RequiredKeywordParameterNode (location: (25,15)-(25,21))
│ │ │ ├── name: :bar
│ │ │ ├── name_loc: (25,15)-(25,19) = "bar:"
│ │ │ └── value:
@@ -811,10 +811,9 @@
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 1)
- │ │ │ └── @ KeywordParameterNode (location: (51,6)-(51,10))
+ │ │ │ └── @ OptionalKeywordParameterNode (location: (51,6)-(51,10))
│ │ │ ├── name: :foo
- │ │ │ ├── name_loc: (51,6)-(51,10) = "foo:"
- │ │ │ └── value: ∅
+ │ │ │ └── name_loc: (51,6)-(51,10) = "foo:"
│ │ ├── keyword_rest: ∅
│ │ └── block: ∅
│ ├── body: ∅
@@ -836,7 +835,7 @@
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 1)
- │ │ │ └── @ KeywordParameterNode (location: (54,6)-(54,13))
+ │ │ │ └── @ RequiredKeywordParameterNode (location: (54,6)-(54,13))
│ │ │ ├── name: :foo
│ │ │ ├── name_loc: (54,6)-(54,10) = "foo:"
│ │ │ └── value: