pub fn csharp_accessor_count(node: &Node<'_>) -> usizeExpand description
Counts the accessor_declaration children (get / set / init) of a C#
property_declaration / indexer_declaration by walking its
accessor_list. Returns 0 for the expression-bodied form
(this[int i] => _d[i]; / int W => _w;), which has no accessor list.
Shared by csharp_member_has_accessors (here) and the npm reference
csharp_count_member, which keeps its own .max(1) fallback so an
accessor-less expression-bodied member still counts as one method (#464).