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

Function body_of

codegraph-kernel/src/tsjs/mod.rs:896–898  ·  view source on GitHub ↗

resolveBody ?? getChildByField(node, 'body') — the body-walk resolution.

(node: Node)

Source from the content-addressed store, hash-verified

894
895/// resolveBody ?? getChildByField(node, 'body') — the body-walk resolution.
896fn body_of(node: Node) -> Option<Node> {
897 resolve_field_body(node).or_else(|| node.child_by_field_name("body"))
898}
899
900fn opt_str(arena: &mut Arena, s: Option<&str>) -> StrRef {
901 match s {

Callers 6

extract_functionMethod · 0.85
extract_classMethod · 0.85
extract_methodMethod · 0.85
extract_interfaceMethod · 0.85
extract_enumMethod · 0.85

Calls 1

resolve_field_bodyFunction · 0.85

Tested by

no test coverage detected