in src/resolver/base.js [47:64]
resolveAnnotation(annotation, belong) {
let type = annotation.value.indexOf('/**') === 0 ? 'multi' : 'single';
let content = '';
if (type === 'multi') {
content = annotation.value.substring(3, annotation.value.length - 2)
.trim().split('\n').filter(c => c.length > 0).map(c => {
if (c.indexOf(' * ') === 0) {
return c.substring(3);
} else if (c.indexOf('* ') === 0) {
return c.substring(2);
}
return c;
});
} else {
content = annotation.value.substring(2).trim();
}
return new AnnotationItem(belong, type, content);
}