(ts: any, fileName: string, content: string)
| 53 | } |
| 54 | |
| 55 | export function parseSourceFile(ts: any, fileName: string, content: string): any { |
| 56 | return ts.createSourceFile( |
| 57 | fileName, |
| 58 | content, |
| 59 | ts.ScriptTarget.Latest, |
| 60 | true // setParentNodes — needed for walking up the tree |
| 61 | ); |
| 62 | } |
| 63 | |
| 64 | /** |
| 65 | * Get decorators from a node, handling both TS 4.x (node.decorators) |
no outgoing calls
no test coverage detected