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

Function withoutObjcppItems

src/extraction/languages/objcpp.ts:891–900  ·  view source on GitHub ↗
(source: string, items: readonly ObjcppItem[])

Source from the content-addressed store, hash-verified

889 * the `@interface` after it; the item's own text used to stop it there.
890 */
891export function withoutObjcppItems(source: string, items: readonly ObjcppItem[]): string {
892 const out: string[] = [];
893 let at = 0;
894 for (const item of items) {
895 out.push(source.slice(at, item.start), ';', spaces(source.slice(item.start + 1, item.end)));
896 at = item.end;
897 }
898 out.push(source.slice(at));
899 return out.join('');
900}

Callers 3

extractObjcppFunction · 0.90
expectSameShapeFunction · 0.90

Calls 3

spacesFunction · 0.85
pushMethod · 0.80
joinMethod · 0.45

Tested by 1

expectSameShapeFunction · 0.72