Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
console.log(colors.yellow(`Warning: Unresolved @inheritDoc tag for ${apiItem.displayName}: `
+ result.errorMessage));
} else {
if (result.resolvedApiItem instanceof ApiDocumentedItem
&& result.resolvedApiItem.tsdocComment
&& result.resolvedApiItem !== apiItem) {
this._copyInheritedDocs(apiItem.tsdocComment, result.resolvedApiItem.tsdocComment);
}
}
}
}
}
// Recurse members
if (ApiItemContainerMixin.isBaseClassOf(apiItem)) {
for (const member of apiItem.members) {
this._applyInheritDoc(member, apiModel);
}
}
}
}
if (this._apiItemsByTypeName.has(typeName)) {
// We saw this name before, so it's an ambiguous match
ambiguousNames.add(typeName);
break;
}
this._apiItemsByTypeName.set(typeName, apiItem);
}
break;
}
// Recurse container members
if (ApiItemContainerMixin.isBaseClassOf(apiItem)) {
for (const apiMember of apiItem.members) {
this._initApiItemsByTypeNameRecursive(apiMember, ambiguousNames);
}
}
}
}
}
}
if (apiItem.displayName === "__computed" && apiItem instanceof ApiDeclaredItem) {
const match = /\[[^\[\]]+\]/.exec(apiItem.excerpt.text);
if (match) {
const nameSymbol = getNameSymbol(apiItem);
if (nameSymbol) {
apiItem[nameSymbol] = match[0];
}
}
}
// Recurse members
if (ApiItemContainerMixin.isBaseClassOf(apiItem)) {
for (const member of apiItem.members) {
fixupModel(member, apiModel);
}
}
}
// @ts-ignore
if (this._apiItemsByTypeName.has(typeName)) {
// We saw this name before, so it's an ambiguous match
ambiguousNames.add(typeName);
break;
}
// @ts-ignore
this._apiItemsByTypeName.set(typeName, apiItem);
}
break;
}
// Recurse container members
if (ApiItemContainerMixin.isBaseClassOf(apiItem)) {
for (const apiMember of apiItem.members) {
this._initApiItemsByTypeNameRecursive(apiMember, ambiguousNames);
}
}
}