MCPcopy Create free account
hub / github.com/DavidWells/analytics / getPluginInfo

Function getPluginInfo

scripts/docs/parse/index.js:21–39  ·  view source on GitHub ↗
(filePath, otherParam)

Source from the content-addressed store, hash-verified

19// deepLog(docBlocs)
20
21async 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
41async function getJSDocInfo(codePath) {
42 const data = await jsdoc2md.getTemplateData({

Callers 1

Calls 2

getJSDocInfoFunction · 0.85
parseCodeFunction · 0.85

Tested by

no test coverage detected