(ast: t.File)
| 57 | } |
| 58 | |
| 59 | function _getProgramNodePath(ast: t.File): NodePath<t.Program> | null { |
| 60 | let result: NodePath<t.Program> | null = null; |
| 61 | |
| 62 | traverse(ast, { |
| 63 | Program(nodePath: NodePath<t.Program>) { |
| 64 | result = nodePath; |
| 65 | nodePath.stop(); |
| 66 | }, |
| 67 | }); |
| 68 | |
| 69 | return result; |
| 70 | } |
no test coverage detected