From 25b9a0cbc86da562e765e4fac27bb28311646971 Mon Sep 17 00:00:00 2001 From: Ufuk Kayserilioglu Date: Mon, 11 Dec 2023 22:26:06 +0200 Subject: [ruby/prism] Add `STATIC_KEYS` flag for `KeywordHashNode` https://github.com/ruby/prism/commit/aa83de39c1 --- prism/config.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/prism/config.yml b/prism/config.yml index 5f20c80f16..7e71e4e50b 100644 --- a/prism/config.yml +++ b/prism/config.yml @@ -364,6 +364,11 @@ flags: - name: HEXADECIMAL comment: "0x prefix" comment: Flags for integer nodes that correspond to the base of the integer. + - name: KeywordHashNodeFlags + values: + - name: STATIC_KEYS + comment: "a keyword hash which only has `AssocNode` elements all with static literal keys, which means the elements can be treated as keyword arguments" + comment: Flags for keyword hash nodes. - name: LoopFlags values: - name: BEGIN_MODIFIER @@ -1821,6 +1826,9 @@ nodes: ^^^^^^^^^^^^^^^^ - name: KeywordHashNode fields: + - name: flags + type: flags + kind: KeywordHashNodeFlags - name: elements type: node[] comment: | -- cgit v1.2.3