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

Function lineOf

src/resolution/frameworks/react-native.ts:114–118  ·  view source on GitHub ↗
(idx: number)

Source from the content-addressed store, hash-verified

112 if (!moduleName) return results;
113
114 const lineOf = (idx: number): number => {
115 let line = 1;
116 for (let i = 0; i < idx && i < source.length; i++) if (source.charCodeAt(i) === 10) line++;
117 return line;
118 };
119
120 // RCT_EXPORT_METHOD(selectorFirstKw:(args)…)
121 // The first keyword (everything up to the first `:` or open paren) is the

Callers 3

eventEmitterEdgesFunction · 0.85
rnEventEdgesFunction · 0.85
parseObjcRNExportsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected