(filePath, otherParam)
| 19 | // deepLog(docBlocs) |
| 20 | |
| 21 | async function getPluginInfo(filePath, otherParam) { |
| 22 | const code = await readFile(filePath, 'utf-8') |
| 23 | let jsDocData = [] |
| 24 | let ast = { methodsByName: [], methodsAndValues: [], foundExports: [] } |
| 25 | try { |
| 26 | // console.log(`work filePath`, filePath) |
| 27 | // console.log('otherParam', otherParam) |
| 28 | jsDocData = await getJSDocInfo(filePath) |
| 29 | ast = parseCode(code) |
| 30 | } catch (err) { |
| 31 | console.log(`fail filePath`, filePath) |
| 32 | // console.log('otherParam', otherParam) |
| 33 | console.log('err', err) |
| 34 | } |
| 35 | return { |
| 36 | ast: ast, |
| 37 | jsdoc: jsDocData |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | async function getJSDocInfo(codePath) { |
| 42 | const data = await jsdoc2md.getTemplateData({ |
no test coverage detected