(sf: ts.SourceFile, name: string)
| 872 | } |
| 873 | |
| 874 | export function getClass(sf: ts.SourceFile, name: string): ClassDeclaration<ts.ClassDeclaration> { |
| 875 | for (const stmt of sf.statements) { |
| 876 | if (isNamedClassDeclaration(stmt) && stmt.name.text === name) { |
| 877 | return stmt; |
| 878 | } |
| 879 | } |
| 880 | throw new Error(`Class ${name} not found in file: ${sf.fileName}: ${sf.text}`); |
| 881 | } |
| 882 | |
| 883 | function getDirectiveMetaFromDeclaration( |
| 884 | decl: TestDirective, |
searching dependent graphs…