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

Method object_has_inline_functions

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

Source from the content-addressed store, hash-verified

535 }
536
537 pub(super) fn object_has_inline_functions(&self, obj: Node) -> bool {
538 for i in 0..obj.named_child_count() {
539 let Some(member) = obj.named_child(i) else { continue };
540 if member.kind() == "method_definition" {
541 return true;
542 }
543 if member.kind() == "pair" {
544 if let Some(v) = member.child_by_field_name("value") {
545 if matches!(v.kind(), "arrow_function" | "function_expression") {
546 return true;
547 }
548 }
549 }
550 }
551 false
552 }
553
554 fn find_rtk_endpoints_object(&self, call: Node<'t>) -> Option<Node<'t>> {
555 let callee = call.child_by_field_name("function")?;

Callers 1

extract_variableMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected