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

Method class_like_docstring

codegraph-kernel/src/ccpp/mod.rs:1380–1382  ·  view source on GitHub ↗

docstringFor a class-like node: the comment above the declaration it is defined in (the c/cpp getDeclarationWrapper), else above the node.

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

Source from the content-addressed store, hash-verified

1378 /// docstringFor a class-like node: the comment above the declaration it is
1379 /// defined in (the c/cpp getDeclarationWrapper), else above the node.
1380 fn class_like_docstring(&self, node: Node<'t>) -> Option<String> {
1381 preceding_docstring(defining_declaration(node).unwrap_or(node), self.src)
1382 }
1383
1384 /// extractClass for cpp class_specifier (skipBodilessClass, #1093).
1385 fn extract_class(&mut self, node: Node<'t>) {

Callers 3

extract_classMethod · 0.80
extract_aggregateMethod · 0.80
extract_enumMethod · 0.80

Calls 2

preceding_docstringFunction · 0.85
defining_declarationFunction · 0.85

Tested by

no test coverage detected