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

Function body_of

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

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

(node: Node)

Source from the content-addressed store, hash-verified

897
898/// resolveBody ?? getChildByField(node, 'body') — the body-walk resolution.
899fn body_of(node: Node) -> Option<Node> {
900 resolve_field_body(node).or_else(|| node.child_by_field_name("body"))
901}
902
903fn opt_str(arena: &mut Arena, s: Option<&str>) -> StrRef {
904 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