2023-11-23 07:41:55 +01:00
|
|
|
; extends
|
2021-06-22 06:24:37 +02:00
|
|
|
;; key/value-like types. Works with struct values, struct definitions and parameter value/type pairs:
|
|
|
|
;;
|
|
|
|
;; @keyed_element.outer => key and value
|
|
|
|
;; @keyed_element.inner => value
|
|
|
|
|
2025-01-11 08:38:17 +01:00
|
|
|
(keyed_element . ((_) @kv_element.key))
|
|
|
|
(keyed_element ((_) @kv_element.value) .)
|
|
|
|
(keyed_element) @kv_element.all
|
2024-05-20 09:04:49 +02:00
|
|
|
|
2025-01-11 08:38:17 +01:00
|
|
|
(parameter_declaration) @kv_element.all
|
|
|
|
(parameter_declaration . ((_) @kv_element.key))
|
|
|
|
(parameter_declaration ((_) @kv_element.value) .)
|
|
|
|
|
|
|
|
(field_declaration) @kv_element.all
|
|
|
|
(field_declaration . ((_) @kv_element.key))
|
|
|
|
(field_declaration ((_) @kv_element.value) .)
|