| 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")?; |