(dir = EXTRACTION_DIR)
| 35 | } |
| 36 | |
| 37 | function coreFiles(dir = EXTRACTION_DIR): string[] { |
| 38 | const out: string[] = []; |
| 39 | for (const entry of fs.readdirSync(dir, { withFileTypes: true })) { |
| 40 | const p = path.join(dir, entry.name); |
| 41 | if (entry.isDirectory()) { |
| 42 | if (entry.name !== 'languages') out.push(...coreFiles(p)); |
| 43 | } else if (entry.name.endsWith('.ts') && !entry.name.endsWith('.d.ts') && p !== TYPES_FILE) { |
| 44 | out.push(p); |
| 45 | } |
| 46 | } |
| 47 | return out; |
| 48 | } |
| 49 | |
| 50 | /** `extractor`, `this.extractor`, either one behind `!` or parentheses. */ |
| 51 | function isExtractorReceiver(node: ts.Expression): boolean { |
no test coverage detected