(source: string, items: readonly ObjcppItem[])
| 889 | * the `@interface` after it; the item's own text used to stop it there. |
| 890 | */ |
| 891 | export 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 | } |