Skip to content

Commit eb7c7e1

Browse files
committed
fix(app): handle ; after function in class
fix #12
1 parent 69a52d7 commit eb7c7e1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/app/compiler/dependencies.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,12 @@ export class Dependencies {
464464
/**
465465
* Copyright https://github.com/ng-bootstrap/ng-bootstrap
466466
*/
467-
const jsDoc = ts.displayPartsToString(member.symbol.getDocumentationComment());
467+
let comment = [];
468+
console.log(member.symbol)
469+
if (member.symbol) {
470+
comment = member.symbol.getDocumentationComment();
471+
}
472+
const jsDoc = ts.displayPartsToString(comment);
468473
return jsDoc.trim().length === 0 || jsDoc.indexOf('@internal') > -1;
469474
}
470475

0 commit comments

Comments
 (0)