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

Function collectTypeIdentifiers

src/extraction/languages/objc.ts:52–58  ·  view source on GitHub ↗

Collect the type identifiers under a `method_type`, in document order.

(node: SyntaxNode, source: string, out: string[])

Source from the content-addressed store, hash-verified

50
51/** Collect the type identifiers under a `method_type`, in document order. */
52function collectTypeIdentifiers(node: SyntaxNode, source: string, out: string[]): void {
53 if (node.type === 'type_identifier') out.push(getNodeText(node, source).trim());
54 for (let i = 0; i < node.namedChildCount; i++) {
55 const child = node.namedChild(i);
56 if (child) collectTypeIdentifiers(child, source, out);
57 }
58}
59
60/**
61 * Capture an ObjC method's declared return type as a bare class name, for the

Callers 1

extractObjcReturnTypeFunction · 0.85

Calls 2

getNodeTextFunction · 0.90
pushMethod · 0.80

Tested by

no test coverage detected