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.
Used by 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). csharp_member_has_accessors asks only
whether one exists and stops at the first (#1612).