in src/resolver/base.js [109:126]
findComments(obj, node, position = 'front') {
let comments = this.getComments(node, position);
if (comments.length > 0) {
comments.forEach(c => {
if (this.commentsSet.indexOf(c.index) < 0) {
if (typeof obj.body !== 'undefined') {
obj.body.push(this.resolveAnnotation(c, obj.index));
} else if (typeof obj.value !== 'undefined') {
obj.value.push(this.resolveAnnotation(c, obj.index));
} else {
debug.stack('Invalid data node', obj, node);
}
this.commentsSet.push(c.index);
}
});
}
}