docs(union): describe first-class union nodes

This commit is contained in:
ctype_lab
2026-08-06 17:11:26 +09:00
parent 8e3cde6994
commit ba58365c6f
4 changed files with 8 additions and 9 deletions
@@ -54,9 +54,9 @@ Types: functionTypes=[`function_item`, **`function_signature_item`**] (the
latter = a trait method DECLARATION `fn render(&self);` — extracted so a
trait's method set is first-class); classTypes=[] (impl blocks instead);
methodTypes = same two; interfaceTypes=[`trait_item`] with
**interfaceKind:'trait'**; structTypes=[`struct_item`] (superseded:
`union_item` joined structTypes — same `body` field, same extractor, kind
`struct`); enumTypes=[`enum_item`];
**interfaceKind:'trait'**; structTypes=[`struct_item`];
unionTypes=[`union_item`] (same body walk, distinct `union` node kind);
enumTypes=[`enum_item`];
enumMemberTypes=[`enum_variant`]; typeAliasTypes=[`type_item`];
importTypes=[`use_declaration`]; callTypes=[`call_expression`];
variableTypes=[`let_declaration`, `const_item`, `static_item`].