Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
super.serializeInto(jsonObject);
jsonObject.aliasTypeTokenRange = this.aliasTypeExcerpt.tokenRange;
}
};
// @ts-ignore
ApiTypeAlias_1.ApiTypeAlias = ApiTypeAlias;
api_extractor_model_1.ApiTypeAlias = ApiTypeAlias;
/**
* @param {AstDeclaration} astDeclaration
* @param {string?} exportedName
* @param {ApiItemContainerMixin} parentApiItem
*/
// @ts-ignore
ApiModelGenerator.prototype._processApiTypeAlias = function(astDeclaration, exportedName, parentApiItem) {
console.log("ApiModelGenerator.prototype._processApiTypeAlias");
const name = !!exportedName ? exportedName : astDeclaration.astSymbol.localName;
const canonicalReference = ApiTypeAlias.getCanonicalReference(name);
let apiTypeAlias = /** @type {ApiTypeAlias?} */(parentApiItem.tryGetMember(canonicalReference));
if (apiTypeAlias === undefined) {
const typeAliasDeclaration = /** @type {ts.TypeAliasDeclaration} */(astDeclaration.declaration);
const nodesToCapture = [];
// @ts-ignore
const aliasTypeTokenRange = ExcerptBuilder.createEmptyTokenRange();
nodesToCapture.push({ node: typeAliasDeclaration.type, tokenRange: aliasTypeTokenRange });
const excerptTokens = ExcerptBuilder.build({
startingNode: astDeclaration.declaration,
nodesToCapture
});