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

Function findCompoundStatement

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

Source from the content-addressed store, hash-verified

11} from './c-cpp';
12
13function findCompoundStatement(node: SyntaxNode): SyntaxNode | null {
14 for (let i = 0; i < node.namedChildCount; i++) {
15 const child = node.namedChild(i);
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

no outgoing calls

Tested by

no test coverage detected