Added debug and warning

This commit is contained in:
Richard Davey 2022-11-10 16:19:30 +00:00
parent 064e8a3ec2
commit 643a0d1de1
3 changed files with 9 additions and 1 deletions

View file

@ -124,6 +124,7 @@ class Parser {
if (obj) {
if (container[doclet.longname]) {
console.log('Warning: ignoring duplicate doc name: ' + doclet.longname);
console.log('Meta: ', doclet.meta);
docs.splice(i--, 1);
continue;
}

File diff suppressed because one or more lines are too long

View file

@ -1,5 +1,10 @@
import * as dom from 'dts-dom';
/**
* Note that this Parser only works with jsdoc 3.6.6 output.
* Downgrading, or upgrading jsdoc will cause it to break.
*/
const regexEndLine = /^(.*)\r\n|\n|\r/gm;
export class Parser {
@ -159,6 +164,8 @@ export class Parser {
if (container[doclet.longname])
{
console.log('Warning: ignoring duplicate doc name: ' + doclet.longname);
console.log('Meta: ', doclet.meta);
docs.splice(i--, 1);
continue;
}