return baseText;
}
@Override
public StyledString visitDepContainer(DubDependenciesContainer element) {
StyledString baseText = new StyledString("DUB Dependencies");
DubBundleDescription bundleInfo = element.getBundleInfo();
if(bundleInfo.hasErrors()) {
// TODO: present more details about origin of error (json or dub describre)
if(bundleInfo.isResolved()) {
return baseText.append(" [DUB error]", fgColor(DUB_DEPCONTAINER_ERROR_ANNOTATION_FG));
} else {
return baseText.append(" [DUB error]", fgColor(DUB_DEPCONTAINER_ERROR_ANNOTATION_FG));
}
} else {
if(bundleInfo.isResolved()) {
return baseText;
} else {
return baseText.append(" <dub describing>", fgColor(DUB_DEPCONTAINER_ANNOTATION_FG));
}
}
}