From b1c2f323f9155bed4299401139b248edb8a59ed4 Mon Sep 17 00:00:00 2001 From: ydah Date: Thu, 28 Nov 2024 23:05:42 +0900 Subject: [PATCH] Add document BlockArgumentNode fields Partially fixes: https://github.com/ruby/prism/issues/2123 --- config.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config.yml b/config.yml index 0f50f30b94..c30ca26172 100644 --- a/config.yml +++ b/config.yml @@ -1111,8 +1111,18 @@ nodes: - name: expression type: node? kind: non-void expression + comment: | + The expression that is being passed as a block argument. This can be any [non-void expression](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression). + + foo(&args) + ^^^^^ - name: operator_loc type: location + comment: | + Represents the location of the `&` operator. + + foo(&args) + ^ comment: | Represents a block argument using `&`.