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

Function swiftMethod

__tests__/react-native-bridge.test.ts:353–367  ·  view source on GitHub ↗
(name: string, owner: string, filePath: string, startLine: number)

Source from the content-addressed store, hash-verified

351import { parseObjcRNExterns, collectNativeModuleAliases } from '../src/resolution/frameworks/react-native';
352
353function swiftMethod(name: string, owner: string, filePath: string, startLine: number): Node {
354 return {
355 id: `swift:${filePath}:${name}:${startLine}`,
356 kind: 'method',
357 name,
358 qualifiedName: `${owner}::${name}`,
359 filePath,
360 language: 'swift',
361 startLine,
362 endLine: startLine + 4,
363 startColumn: 0,
364 endColumn: 0,
365 updatedAt: Date.now(),
366 } as Node;
367}
368
369const SHIM = `
370#import <React/RCTBridgeModule.h>

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected