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

Method object_has_inline_functions

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

Source from the content-addressed store, hash-verified

1253 }
1254
1255 pub(super) fn object_has_inline_functions(&self, obj: Node) -> bool {
1256 for member in obj.named_children(&mut obj.walk()) {
1257 if member.kind() == "method_definition" {
1258 return true;
1259 }
1260 if member.kind() == "pair" {
1261 if let Some(v) = member.child_by_field_name("value") {
1262 if matches!(v.kind(), "arrow_function" | "function_expression") {
1263 return true;
1264 }
1265 }
1266 }
1267 }
1268 false
1269 }
1270
1271 fn find_rtk_endpoints_object(&self, call: Node<'t>) -> Option<Node<'t>> {
1272 let callee = call.child_by_field_name("function")?;

Callers 1

extract_variableMethod · 0.80

Calls 1

walkMethod · 0.45

Tested by

no test coverage detected