(messages: Hint[])
| 300 | } |
| 301 | |
| 302 | function hintNext(messages: Hint[]) { |
| 303 | const spendTime = new Date().getTime() - startTime |
| 304 | const hintCount = messages.length |
| 305 | if (hintCount > 0) { |
| 306 | formatter.emit('file', { |
| 307 | file: filepath, |
| 308 | messages: messages, |
| 309 | time: spendTime, |
| 310 | }) |
| 311 | arrTargetMessages.push({ |
| 312 | file: filepath, |
| 313 | messages: messages, |
| 314 | time: spendTime, |
| 315 | }) |
| 316 | targetHintFileCount++ |
| 317 | targetHintCount += hintCount |
| 318 | } |
| 319 | targetFileCount++ |
| 320 | setImmediate(next) |
| 321 | } |
| 322 | }, 10) |
| 323 | |
| 324 | // start hint |