diff options
author | Jemma Issroff <jemmaissroff@gmail.com> | 2023-10-31 17:00:28 -0300 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-11-01 14:40:44 +0000 |
commit | d0625099e0f691f44fb4c796d8d497d818bf7c8e (patch) | |
tree | 223ed8f212c6778c32196545c11ffd9a612ec383 /test/prism/snapshots/seattlerb/required_kwarg_no_value.txt | |
parent | 717fb5bb0b0d9aa4dbc636ea87037703a941b34f (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/seattlerb/required_kwarg_no_value.txt')
-rw-r--r-- | test/prism/snapshots/seattlerb/required_kwarg_no_value.txt | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/prism/snapshots/seattlerb/required_kwarg_no_value.txt b/test/prism/snapshots/seattlerb/required_kwarg_no_value.txt index ccfdab2a14..167db3a475 100644 --- a/test/prism/snapshots/seattlerb/required_kwarg_no_value.txt +++ b/test/prism/snapshots/seattlerb/required_kwarg_no_value.txt @@ -14,14 +14,12 @@ │ ├── rest: ∅ │ ├── posts: (length: 0) │ ├── keywords: (length: 2) - │ │ ├── @ KeywordParameterNode (location: (1,6)-(1,8)) + │ │ ├── @ OptionalKeywordParameterNode (location: (1,6)-(1,8)) │ │ │ ├── name: :a - │ │ │ ├── name_loc: (1,6)-(1,8) = "a:" - │ │ │ └── value: ∅ - │ │ └── @ KeywordParameterNode (location: (1,10)-(1,12)) + │ │ │ └── name_loc: (1,6)-(1,8) = "a:" + │ │ └── @ OptionalKeywordParameterNode (location: (1,10)-(1,12)) │ │ ├── name: :b - │ │ ├── name_loc: (1,10)-(1,12) = "b:" - │ │ └── value: ∅ + │ │ └── name_loc: (1,10)-(1,12) = "b:" │ ├── keyword_rest: ∅ │ └── block: ∅ ├── body: ∅ |