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

Function findCompoundStatement

src/extraction/languages/objc.ts:14–21  ·  view source on GitHub ↗
(node: SyntaxNode)

Source from the content-addressed store, hash-verified

12import { rewriteRctExternShims } from './objc-rn-extern';
13
14function findCompoundStatement(node: SyntaxNode): SyntaxNode | null {
15 for (const child of namedChildrenOf(node)) {
16 if (child?.type === 'compound_statement') {
17 return child;
18 }
19 }
20 return null;
21}
22
23/** Build ObjC selector: `greet`, `doThing:`, or `doThing:with:`. */
24function extractObjcMethodName(node: SyntaxNode, source: string): string | undefined {

Callers 1

objc.tsFile · 0.85

Calls 1

namedChildrenOfFunction · 0.90

Tested by

no test coverage detected