(line)
| 129 | } |
| 130 | |
| 131 | function parseLine(line) { |
| 132 | const argStart = line.lastIndexOf('(') |
| 133 | if (argStart < 0) { |
| 134 | console.warn('Cannot find parameters on line', line) |
| 135 | return undefined |
| 136 | } |
| 137 | const starter = line.substring(0, argStart) |
| 138 | const retPlusSymbol = starter.substring(line.indexOf(' ')).replaceAll('(', ' ').replaceAll(')', '') |
| 139 | const rawArgs = line.substring(argStart).substring(1).split(')')[0].split(',') |
| 140 | return { |
| 141 | definition: parseNamedSymbol(retPlusSymbol), |
| 142 | args: rawArgs.map((arg) => parseNamedSymbol(arg)).filter((arg) => arg.type !== 'void'), |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | rl.on('line', (file) => { |
| 147 | const rawFile = fs.readFileSync(file).toString() |
no test coverage detected