()
| 35 | constructor(private readonly filePath: string) {} |
| 36 | |
| 37 | parse() { |
| 38 | const fileContents = fs.readFileSync(this.filePath, "utf8"); |
| 39 | this.sourceFile = ts.createSourceFile( |
| 40 | this.filePath, |
| 41 | fileContents, |
| 42 | ts.ScriptTarget.Latest, |
| 43 | true, |
| 44 | ); |
| 45 | } |
| 46 | |
| 47 | /** |
| 48 | * Get the interface definition of the first argument of the function or class constructor. |
no outgoing calls