(sf: ts.SourceFile, name: string)
| 433 | }); |
| 434 | |
| 435 | function getClass(sf: ts.SourceFile, name: string): ClassDeclaration<ts.ClassDeclaration> { |
| 436 | for (const stmt of sf.statements) { |
| 437 | if (isNamedClassDeclaration(stmt) && stmt.name.text === name) { |
| 438 | return stmt; |
| 439 | } |
| 440 | } |
| 441 | throw new Error(`Class ${name} not found in file: ${sf.fileName}: ${sf.text}`); |
| 442 | } |
no test coverage detected
searching dependent graphs…