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

Method object_has_inline_functions

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

Source from the content-addressed store, hash-verified

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

Callers 1

extract_variableMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected