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

Method object_has_inline_functions

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

Source from the content-addressed store, hash-verified

1214 }
1215
1216 pub(super) fn object_has_inline_functions(&self, obj: Node) -> bool {
1217 for i in 0..obj.named_child_count() {
1218 let Some(member) = obj.named_child(i) else { continue };
1219 if member.kind() == "method_definition" {
1220 return true;
1221 }
1222 if member.kind() == "pair" {
1223 if let Some(v) = member.child_by_field_name("value") {
1224 if matches!(v.kind(), "arrow_function" | "function_expression") {
1225 return true;
1226 }
1227 }
1228 }
1229 }
1230 false
1231 }
1232
1233 fn find_rtk_endpoints_object(&self, call: Node<'t>) -> Option<Node<'t>> {
1234 let callee = call.child_by_field_name("function")?;

Callers 1

extract_variableMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected