(sf: ts.SourceFile, name: string)
| 445 | }); |
| 446 | |
| 447 | function getClass(sf: ts.SourceFile, name: string): ClassDeclaration<ts.ClassDeclaration> { |
| 448 | for (const stmt of sf.statements) { |
| 449 | if (isNamedClassDeclaration(stmt) && stmt.name.text === name) { |
| 450 | return stmt; |
| 451 | } |
| 452 | } |
| 453 | throw new Error(`Class ${name} not found in file: ${sf.fileName}: ${sf.text}`); |
| 454 | } |
no test coverage detected