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/block_kw__required.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/block_kw__required.txt')
-rw-r--r-- | test/prism/snapshots/seattlerb/block_kw__required.txt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/prism/snapshots/seattlerb/block_kw__required.txt b/test/prism/snapshots/seattlerb/block_kw__required.txt index 7e0ad49f5f..7fdd0c4e1e 100644 --- a/test/prism/snapshots/seattlerb/block_kw__required.txt +++ b/test/prism/snapshots/seattlerb/block_kw__required.txt @@ -22,10 +22,9 @@ │ │ │ ├── rest: ∅ │ │ │ ├── posts: (length: 0) │ │ │ ├── keywords: (length: 1) - │ │ │ │ └── @ KeywordParameterNode (location: (1,9)-(1,11)) + │ │ │ │ └── @ OptionalKeywordParameterNode (location: (1,9)-(1,11)) │ │ │ │ ├── name: :k - │ │ │ │ ├── name_loc: (1,9)-(1,11) = "k:" - │ │ │ │ └── value: ∅ + │ │ │ │ └── name_loc: (1,9)-(1,11) = "k:" │ │ │ ├── keyword_rest: ∅ │ │ │ └── block: ∅ │ │ ├── locals: (length: 0) |