getDeclarationWrapper (dart.ts) — a member with no body (`Foo._();`, `const Foo.c();`, an abstract `void m();`) is a `declaration` wrapping its signature, and the member's `///` dartdoc and `@annotation`s come before the wrapper. A signature that opens the declaration takes both from there.
(&self, node: Node<'t>)
| 718 | /// before the wrapper. A signature that opens the declaration takes both |
| 719 | /// from there. |
| 720 | fn declaration_wrapper(&self, node: Node<'t>) -> Option<Node<'t>> { |
| 721 | let parent = node.parent()?; |
| 722 | if parent.kind() != "declaration" { |
| 723 | return None; |
| 724 | } |
| 725 | if parent.named_child(0)? == node { |
| 726 | Some(parent) |
| 727 | } else { |
| 728 | None |
| 729 | } |
| 730 | } |
| 731 | |
| 732 | /// docstringFor (tree-sitter.ts) — the preceding comment run, looked up |
| 733 | /// from the declaration wrapper when there is one, past annotations. |
no outgoing calls
no test coverage detected