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

Method object_has_inline_functions

codegraph-kernel/src/tsjs/extractors.rs:1113–1128  ·  view source on GitHub ↗
(&self, obj: Node)

Source from the content-addressed store, hash-verified

1111 }
1112
1113 pub(super) fn object_has_inline_functions(&self, obj: Node) -> bool {
1114 for i in 0..obj.named_child_count() {
1115 let Some(member) = obj.named_child(i) else { continue };
1116 if member.kind() == "method_definition" {
1117 return true;
1118 }
1119 if member.kind() == "pair" {
1120 if let Some(v) = member.child_by_field_name("value") {
1121 if matches!(v.kind(), "arrow_function" | "function_expression") {
1122 return true;
1123 }
1124 }
1125 }
1126 }
1127 false
1128 }
1129
1130 fn find_rtk_endpoints_object(&self, call: Node<'t>) -> Option<Node<'t>> {
1131 let callee = call.child_by_field_name("function")?;

Callers 1

extract_variableMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected