summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--prism/config.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/prism/config.yml b/prism/config.yml
index b8a1bab2ae..03c6fbb745 100644
--- a/prism/config.yml
+++ b/prism/config.yml
@@ -1157,10 +1157,27 @@ nodes:
fields:
- name: name
type: constant?
+ comment: |
+ The name of the block parameter.
+
+ def a(&b) # name `:b`
+ ^
+ end
- name: name_loc
type: location?
+ comment: |
+ Represents the location of the block parameter name.
+
+ def a(&b)
+ ^
- name: operator_loc
type: location
+ comment: |
+ Represents the location of the `&` operator.
+
+ def a(&b)
+ ^
+ end
comment: |
Represents a block parameter of a method, block, or lambda definition.