@playcanvas/attribute-parser 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +1 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -209,7 +209,7 @@ export class JSDocParser {
|
|
|
209
209
|
|
|
210
210
|
const namePos = ts.getLineAndCharacterOfPosition(member.getSourceFile(), member.name.getStart());
|
|
211
211
|
|
|
212
|
-
const jsdocNode = member.jsDoc[member.jsDoc.length - 1];
|
|
212
|
+
const jsdocNode = member.jsDoc && member.jsDoc[member.jsDoc.length - 1];
|
|
213
213
|
const jsdocPos = jsdocNode ? ts.getLineAndCharacterOfPosition(member.getSourceFile(), jsdocNode.getStart()) : null;
|
|
214
214
|
|
|
215
215
|
const data = {
|