summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJemma Issroff <jemmaissroff@gmail.com>2023-11-21 15:46:48 -0500
committerJemma Issroff <jemmaissroff@gmail.com>2023-11-21 17:29:07 -0500
commit3db21d2d4c930b6199bd2eba7fa6ab2f017b8a89 (patch)
treefbfdc70cd54025b56d4bfdd44a04aa5ead0fdee9 /test
parentd68e5c6d19d1e903dc5ff309335e1ff1f6329868 (diff)
[PRISM] Rename flag to CONTAINS_KEYWORD_SPLAT
We need to do this change first on ruby/ruby before merging to ruby/prism to avoid breaking ruby/ruby CI
Diffstat (limited to 'test')
-rw-r--r--test/prism/snapshots/constants.txt4
-rw-r--r--test/prism/snapshots/method_calls.txt6
-rw-r--r--test/prism/snapshots/methods.txt2
-rw-r--r--test/prism/snapshots/seattlerb/call_arg_assoc_kwsplat.txt2
-rw-r--r--test/prism/snapshots/seattlerb/call_arg_kwsplat.txt2
-rw-r--r--test/prism/snapshots/seattlerb/call_kwsplat.txt2
-rw-r--r--test/prism/snapshots/seattlerb/defn_kwarg_env.txt2
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/send.txt4
-rw-r--r--test/prism/snapshots/unparser/corpus/literal/since/32.txt2
-rw-r--r--test/prism/snapshots/whitequark/forwarded_argument_with_kwrestarg.txt2
-rw-r--r--test/prism/snapshots/whitequark/forwarded_kwrestarg.txt2
-rw-r--r--test/prism/snapshots/whitequark/forwarded_kwrestarg_with_additional_kwarg.txt2
-rw-r--r--test/prism/snapshots/whitequark/kwoptarg_with_kwrestarg_and_forwarded_args.txt2
13 files changed, 17 insertions, 17 deletions
diff --git a/test/prism/snapshots/constants.txt b/test/prism/snapshots/constants.txt
index 5a31e16872..0e460b5c58 100644
--- a/test/prism/snapshots/constants.txt
+++ b/test/prism/snapshots/constants.txt
@@ -128,7 +128,7 @@
│ │ │ │ ├── flags: variable_call
│ │ │ │ └── name: :bar
│ │ │ └── operator_loc: (17,4)-(17,6) = "**"
- │ │ └── flags: keyword_splat
+ │ │ └── flags: contains_keyword_splat
│ ├── closing_loc: ∅
│ ├── block: ∅
│ ├── flags: ∅
@@ -209,7 +209,7 @@
│ │ │ │ ├── flags: variable_call
│ │ │ │ └── name: :baz
│ │ │ └── operator_loc: (23,9)-(23,11) = "**"
- │ │ └── flags: keyword_splat
+ │ │ └── flags: contains_keyword_splat
│ ├── closing_loc: ∅
│ ├── block: ∅
│ ├── flags: ∅
diff --git a/test/prism/snapshots/method_calls.txt b/test/prism/snapshots/method_calls.txt
index 6b339f5151..b31291019f 100644
--- a/test/prism/snapshots/method_calls.txt
+++ b/test/prism/snapshots/method_calls.txt
@@ -318,7 +318,7 @@
│ │ │ │ ├── flags: variable_call
│ │ │ │ └── name: :kwargs
│ │ │ └── operator_loc: (27,2)-(27,4) = "**"
- │ │ └── flags: keyword_splat
+ │ │ └── flags: contains_keyword_splat
│ ├── closing_loc: (27,10)-(27,11) = ")"
│ ├── block: ∅
│ ├── flags: ∅
@@ -1030,7 +1030,7 @@
│ │ │ │ ├── closing_loc: ∅
│ │ │ │ └── unescaped: "dog"
│ │ │ └── operator_loc: ∅
- │ │ └── flags: keyword_splat
+ │ │ └── flags: contains_keyword_splat
│ ├── closing_loc: ∅
│ ├── block: ∅
│ ├── flags: ∅
@@ -1080,7 +1080,7 @@
│ │ │ │ ├── closing_loc: ∅
│ │ │ │ └── unescaped: "dog"
│ │ │ └── operator_loc: ∅
- │ │ └── flags: keyword_splat
+ │ │ └── flags: contains_keyword_splat
│ ├── closing_loc: (70,40)-(70,41) = ")"
│ ├── block: ∅
│ ├── flags: ∅
diff --git a/test/prism/snapshots/methods.txt b/test/prism/snapshots/methods.txt
index 836b67db6a..4011499382 100644
--- a/test/prism/snapshots/methods.txt
+++ b/test/prism/snapshots/methods.txt
@@ -1285,7 +1285,7 @@
│ │ │ │ │ ├── flags: variable_call
│ │ │ │ │ └── name: :qux
│ │ │ │ └── operator_loc: (139,25)-(139,27) = "**"
- │ │ │ └── flags: keyword_splat
+ │ │ │ └── flags: contains_keyword_splat
│ │ ├── closing_loc: ∅
│ │ ├── block: ∅
│ │ ├── flags: ∅
diff --git a/test/prism/snapshots/seattlerb/call_arg_assoc_kwsplat.txt b/test/prism/snapshots/seattlerb/call_arg_assoc_kwsplat.txt
index 3cd7e700f2..6255d346c1 100644
--- a/test/prism/snapshots/seattlerb/call_arg_assoc_kwsplat.txt
+++ b/test/prism/snapshots/seattlerb/call_arg_assoc_kwsplat.txt
@@ -31,7 +31,7 @@
│ │ │ @ IntegerNode (location: (1,14)-(1,15))
│ │ │ └── flags: decimal
│ │ └── operator_loc: (1,12)-(1,14) = "**"
- │ └── flags: keyword_splat
+ │ └── flags: contains_keyword_splat
├── closing_loc: (1,15)-(1,16) = ")"
├── block: ∅
├── flags: ∅
diff --git a/test/prism/snapshots/seattlerb/call_arg_kwsplat.txt b/test/prism/snapshots/seattlerb/call_arg_kwsplat.txt
index e9383acdf0..c774fb238f 100644
--- a/test/prism/snapshots/seattlerb/call_arg_kwsplat.txt
+++ b/test/prism/snapshots/seattlerb/call_arg_kwsplat.txt
@@ -28,7 +28,7 @@
│ │ │ @ IntegerNode (location: (1,7)-(1,8))
│ │ │ └── flags: decimal
│ │ └── operator_loc: (1,5)-(1,7) = "**"
- │ └── flags: keyword_splat
+ │ └── flags: contains_keyword_splat
├── closing_loc: (1,8)-(1,9) = ")"
├── block: ∅
├── flags: ∅
diff --git a/test/prism/snapshots/seattlerb/call_kwsplat.txt b/test/prism/snapshots/seattlerb/call_kwsplat.txt
index 6901d9ca0c..732cc87700 100644
--- a/test/prism/snapshots/seattlerb/call_kwsplat.txt
+++ b/test/prism/snapshots/seattlerb/call_kwsplat.txt
@@ -18,7 +18,7 @@
│ │ │ @ IntegerNode (location: (1,4)-(1,5))
│ │ │ └── flags: decimal
│ │ └── operator_loc: (1,2)-(1,4) = "**"
- │ └── flags: keyword_splat
+ │ └── flags: contains_keyword_splat
├── closing_loc: (1,5)-(1,6) = ")"
├── block: ∅
├── flags: ∅
diff --git a/test/prism/snapshots/seattlerb/defn_kwarg_env.txt b/test/prism/snapshots/seattlerb/defn_kwarg_env.txt
index 9839ec71cf..33d48faf54 100644
--- a/test/prism/snapshots/seattlerb/defn_kwarg_env.txt
+++ b/test/prism/snapshots/seattlerb/defn_kwarg_env.txt
@@ -39,7 +39,7 @@
│ │ │ │ ├── name: :testing
│ │ │ │ └── depth: 0
│ │ │ └── operator_loc: (1,31)-(1,33) = "**"
- │ │ └── flags: keyword_splat
+ │ │ └── flags: contains_keyword_splat
│ ├── closing_loc: (1,40)-(1,41) = ")"
│ ├── block: ∅
│ ├── flags: ∅
diff --git a/test/prism/snapshots/unparser/corpus/literal/send.txt b/test/prism/snapshots/unparser/corpus/literal/send.txt
index 68a83b210a..d366ec25c0 100644
--- a/test/prism/snapshots/unparser/corpus/literal/send.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/send.txt
@@ -1655,7 +1655,7 @@
│ │ │ │ ├── flags: variable_call
│ │ │ │ └── name: :a
│ │ │ └── operator_loc: (72,6)-(72,8) = "**"
- │ │ └── flags: keyword_splat
+ │ │ └── flags: contains_keyword_splat
│ ├── closing_loc: (72,9)-(72,10) = ")"
│ ├── block: ∅
│ ├── flags: ∅
@@ -2070,7 +2070,7 @@
│ │ │ │ ├── flags: variable_call
│ │ │ │ └── name: :foo
│ │ │ └── operator_loc: (81,2)-(81,4) = "**"
- │ │ └── flags: keyword_splat
+ │ │ └── flags: contains_keyword_splat
│ ├── closing_loc: (81,7)-(81,8) = ")"
│ ├── block: ∅
│ ├── flags: ∅
diff --git a/test/prism/snapshots/unparser/corpus/literal/since/32.txt b/test/prism/snapshots/unparser/corpus/literal/since/32.txt
index 4db42e5de1..77b09ba0de 100644
--- a/test/prism/snapshots/unparser/corpus/literal/since/32.txt
+++ b/test/prism/snapshots/unparser/corpus/literal/since/32.txt
@@ -41,7 +41,7 @@
│ │ │ │ └── @ AssocSplatNode (location: (2,16)-(2,18))
│ │ │ │ ├── value: ∅
│ │ │ │ └── operator_loc: (2,16)-(2,18) = "**"
- │ │ │ └── flags: keyword_splat
+ │ │ │ └── flags: contains_keyword_splat
│ │ ├── closing_loc: (2,18)-(2,19) = ")"
│ │ ├── block: ∅
│ │ ├── flags: ∅
diff --git a/test/prism/snapshots/whitequark/forwarded_argument_with_kwrestarg.txt b/test/prism/snapshots/whitequark/forwarded_argument_with_kwrestarg.txt
index 92635f0b8b..53b3d90dd5 100644
--- a/test/prism/snapshots/whitequark/forwarded_argument_with_kwrestarg.txt
+++ b/test/prism/snapshots/whitequark/forwarded_argument_with_kwrestarg.txt
@@ -41,7 +41,7 @@
│ │ │ └── @ AssocSplatNode (location: (1,37)-(1,39))
│ │ │ ├── value: ∅
│ │ │ └── operator_loc: (1,37)-(1,39) = "**"
- │ │ └── flags: keyword_splat
+ │ │ └── flags: contains_keyword_splat
│ ├── closing_loc: (1,39)-(1,40) = ")"
│ ├── block: ∅
│ ├── flags: ∅
diff --git a/test/prism/snapshots/whitequark/forwarded_kwrestarg.txt b/test/prism/snapshots/whitequark/forwarded_kwrestarg.txt
index c1bc2b7069..f6ae042763 100644
--- a/test/prism/snapshots/whitequark/forwarded_kwrestarg.txt
+++ b/test/prism/snapshots/whitequark/forwarded_kwrestarg.txt
@@ -36,7 +36,7 @@
│ │ │ └── @ AssocSplatNode (location: (1,17)-(1,19))
│ │ │ ├── value: ∅
│ │ │ └── operator_loc: (1,17)-(1,19) = "**"
- │ │ └── flags: keyword_splat
+ │ │ └── flags: contains_keyword_splat
│ ├── closing_loc: (1,19)-(1,20) = ")"
│ ├── block: ∅
│ ├── flags: ∅
diff --git a/test/prism/snapshots/whitequark/forwarded_kwrestarg_with_additional_kwarg.txt b/test/prism/snapshots/whitequark/forwarded_kwrestarg_with_additional_kwarg.txt
index 29ba99b164..32f05cdf17 100644
--- a/test/prism/snapshots/whitequark/forwarded_kwrestarg_with_additional_kwarg.txt
+++ b/test/prism/snapshots/whitequark/forwarded_kwrestarg_with_additional_kwarg.txt
@@ -46,7 +46,7 @@
│ │ │ ├── value:
│ │ │ │ @ TrueNode (location: (1,31)-(1,35))
│ │ │ └── operator_loc: ∅
- │ │ └── flags: keyword_splat
+ │ │ └── flags: contains_keyword_splat
│ ├── closing_loc: (1,35)-(1,36) = ")"
│ ├── block: ∅
│ ├── flags: ∅
diff --git a/test/prism/snapshots/whitequark/kwoptarg_with_kwrestarg_and_forwarded_args.txt b/test/prism/snapshots/whitequark/kwoptarg_with_kwrestarg_and_forwarded_args.txt
index 675c6f9300..58d3928db2 100644
--- a/test/prism/snapshots/whitequark/kwoptarg_with_kwrestarg_and_forwarded_args.txt
+++ b/test/prism/snapshots/whitequark/kwoptarg_with_kwrestarg_and_forwarded_args.txt
@@ -41,7 +41,7 @@
│ │ │ └── @ AssocSplatNode (location: (1,21)-(1,23))
│ │ │ ├── value: ∅
│ │ │ └── operator_loc: (1,21)-(1,23) = "**"
- │ │ └── flags: keyword_splat
+ │ │ └── flags: contains_keyword_splat
│ ├── closing_loc: (1,23)-(1,24) = ")"
│ ├── block: ∅
│ ├── flags: ∅