()
| 26 | } |
| 27 | |
| 28 | function declaredMembers(): string[] { |
| 29 | const source = parse(TYPES_FILE); |
| 30 | const iface = source.statements.find( |
| 31 | (s): s is ts.InterfaceDeclaration => ts.isInterfaceDeclaration(s) && s.name.text === 'LanguageExtractor' |
| 32 | ); |
| 33 | if (!iface) throw new Error('LanguageExtractor not found in tree-sitter-types.ts'); |
| 34 | return iface.members.flatMap((m) => (m.name && ts.isIdentifier(m.name) ? [m.name.text] : [])); |
| 35 | } |
| 36 | |
| 37 | function coreFiles(dir = EXTRACTION_DIR): string[] { |
| 38 | const out: string[] = []; |
no test coverage detected