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/errors_test.rb | |
parent | 717fb5bb0b0d9aa4dbc636ea87037703a941b34f (diff) | |
download | ruby-d0625099e0f691f44fb4c796d8d497d818bf7c8e.tar.gz |
[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/errors_test.rb')
-rw-r--r-- | test/prism/errors_test.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/prism/errors_test.rb b/test/prism/errors_test.rb index e08c2f744d..604311abe4 100644 --- a/test/prism/errors_test.rb +++ b/test/prism/errors_test.rb @@ -746,7 +746,7 @@ module Prism [], nil, [RequiredParameterNode(:a)], - [KeywordParameterNode(:b, Location(), nil)], + [OptionalKeywordParameterNode(:b, Location())], nil, nil ), @@ -774,7 +774,7 @@ module Prism [], nil, [], - [KeywordParameterNode(:b, Location(), nil)], + [OptionalKeywordParameterNode(:b, Location())], KeywordRestParameterNode(:rest, Location(), Location()), nil ), @@ -824,7 +824,7 @@ module Prism [], nil, [RequiredParameterNode(:a)], - [KeywordParameterNode(:b, Location(), nil)], + [OptionalKeywordParameterNode(:b, Location())], KeywordRestParameterNode(:args, Location(), Location()), nil ), @@ -854,7 +854,7 @@ module Prism [], nil, [RequiredParameterNode(:a)], - [KeywordParameterNode(:b, Location(), nil)], + [OptionalKeywordParameterNode(:b, Location())], KeywordRestParameterNode(:args, Location(), Location()), nil ), @@ -884,7 +884,7 @@ module Prism [], nil, [RequiredParameterNode(:a)], - [KeywordParameterNode(:b, Location(), nil)], + [OptionalKeywordParameterNode(:b, Location())], KeywordRestParameterNode(:args, Location(), Location()), nil ), |