(file: string)
| 165 | } |
| 166 | |
| 167 | export function parseFile(file: string): DefinedType[] { |
| 168 | let structs = []; |
| 169 | const { children } = <SourceUnit> parse(file, { tolerant: true }); |
| 170 | for (const child of children) { |
| 171 | if (isSupportedNode(child)) { |
| 172 | structs.push(parseSubNode('', child)) |
| 173 | } |
| 174 | } |
| 175 | return structs; |
| 176 | } |
| 177 | |
| 178 | export function recursiveDirectorySearch(_dirPath) { |
| 179 | const files = fs.readdirSync(_dirPath).map(name => path.join(_dirPath, name)); |
no test coverage detected