MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / docstring_of

Method docstring_of

codegraph-kernel/src/dart.rs:734–740  ·  view source on GitHub ↗

docstringFor (tree-sitter.ts) — the preceding comment run, looked up from the declaration wrapper when there is one, past annotations.

(&self, node: Node<'t>)

Source from the content-addressed store, hash-verified

732 /// docstringFor (tree-sitter.ts) — the preceding comment run, looked up
733 /// from the declaration wrapper when there is one, past annotations.
734 fn docstring_of(&self, node: Node<'t>) -> Option<String> {
735 preceding_docstring_stepping_over(
736 self.declaration_wrapper(node).unwrap_or(node),
737 self.src,
738 DOCSTRING_STEP_OVER,
739 )
740 }
741
742 /// resolveBody (dart.ts:158-171).
743 fn resolve_body(&self, node: Node<'t>) -> Option<Node<'t>> {

Callers 5

extract_functionMethod · 0.45
extract_methodMethod · 0.45
extract_classMethod · 0.45
extract_enumMethod · 0.45
extract_type_aliasMethod · 0.45

Calls 2

declaration_wrapperMethod · 0.45

Tested by

no test coverage detected