@microsoft/api-extractor-model 7.9.7 → 7.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/CHANGELOG.json +75 -0
  2. package/CHANGELOG.md +29 -1
  3. package/README.md +9 -0
  4. package/dist/rollup.d.ts +62 -62
  5. package/dist/tsdoc-metadata.json +1 -1
  6. package/lib/aedoc/AedocDefinitions.d.ts +1 -1
  7. package/lib/aedoc/AedocDefinitions.d.ts.map +1 -1
  8. package/lib/aedoc/AedocDefinitions.js +2 -1
  9. package/lib/aedoc/AedocDefinitions.js.map +1 -1
  10. package/lib/aedoc/ReleaseTag.js +1 -0
  11. package/lib/aedoc/ReleaseTag.js.map +1 -1
  12. package/lib/index.js +37 -37
  13. package/lib/index.js.map +1 -1
  14. package/lib/items/ApiDeclaredItem.d.ts +2 -2
  15. package/lib/items/ApiDeclaredItem.d.ts.map +1 -1
  16. package/lib/items/ApiDeclaredItem.js +1 -0
  17. package/lib/items/ApiDeclaredItem.js.map +1 -1
  18. package/lib/items/ApiDocumentedItem.d.ts +1 -1
  19. package/lib/items/ApiDocumentedItem.d.ts.map +1 -1
  20. package/lib/items/ApiDocumentedItem.js +21 -1
  21. package/lib/items/ApiDocumentedItem.js.map +1 -1
  22. package/lib/items/ApiItem.d.ts +6 -6
  23. package/lib/items/ApiItem.d.ts.map +1 -1
  24. package/lib/items/ApiItem.js +1 -0
  25. package/lib/items/ApiItem.js.map +1 -1
  26. package/lib/items/ApiPropertyItem.d.ts +1 -1
  27. package/lib/items/ApiPropertyItem.d.ts.map +1 -1
  28. package/lib/items/ApiPropertyItem.js +1 -0
  29. package/lib/items/ApiPropertyItem.js.map +1 -1
  30. package/lib/mixins/ApiItemContainerMixin.js +1 -0
  31. package/lib/mixins/ApiItemContainerMixin.js.map +1 -1
  32. package/lib/mixins/ApiNameMixin.js +1 -0
  33. package/lib/mixins/ApiNameMixin.js.map +1 -1
  34. package/lib/mixins/ApiParameterListMixin.js +1 -0
  35. package/lib/mixins/ApiParameterListMixin.js.map +1 -1
  36. package/lib/mixins/ApiReleaseTagMixin.d.ts.map +1 -1
  37. package/lib/mixins/ApiReleaseTagMixin.js +4 -1
  38. package/lib/mixins/ApiReleaseTagMixin.js.map +1 -1
  39. package/lib/mixins/ApiReturnTypeMixin.js +1 -0
  40. package/lib/mixins/ApiReturnTypeMixin.js.map +1 -1
  41. package/lib/mixins/ApiStaticMixin.js +1 -0
  42. package/lib/mixins/ApiStaticMixin.js.map +1 -1
  43. package/lib/mixins/ApiTypeParameterListMixin.js +1 -0
  44. package/lib/mixins/ApiTypeParameterListMixin.js.map +1 -1
  45. package/lib/mixins/Excerpt.d.ts +5 -5
  46. package/lib/mixins/Excerpt.d.ts.map +1 -1
  47. package/lib/mixins/Excerpt.js +1 -0
  48. package/lib/mixins/Excerpt.js.map +1 -1
  49. package/lib/model/ApiCallSignature.d.ts +2 -2
  50. package/lib/model/ApiCallSignature.d.ts.map +1 -1
  51. package/lib/model/ApiCallSignature.js +1 -0
  52. package/lib/model/ApiCallSignature.js.map +1 -1
  53. package/lib/model/ApiClass.d.ts +3 -3
  54. package/lib/model/ApiClass.d.ts.map +1 -1
  55. package/lib/model/ApiClass.js +1 -0
  56. package/lib/model/ApiClass.js.map +1 -1
  57. package/lib/model/ApiConstructSignature.d.ts +2 -2
  58. package/lib/model/ApiConstructSignature.d.ts.map +1 -1
  59. package/lib/model/ApiConstructSignature.js +1 -0
  60. package/lib/model/ApiConstructSignature.js.map +1 -1
  61. package/lib/model/ApiConstructor.d.ts +2 -2
  62. package/lib/model/ApiConstructor.d.ts.map +1 -1
  63. package/lib/model/ApiConstructor.js +1 -0
  64. package/lib/model/ApiConstructor.js.map +1 -1
  65. package/lib/model/ApiEntryPoint.d.ts +3 -3
  66. package/lib/model/ApiEntryPoint.d.ts.map +1 -1
  67. package/lib/model/ApiEntryPoint.js +1 -0
  68. package/lib/model/ApiEntryPoint.js.map +1 -1
  69. package/lib/model/ApiEnum.d.ts +3 -3
  70. package/lib/model/ApiEnum.d.ts.map +1 -1
  71. package/lib/model/ApiEnum.js +1 -0
  72. package/lib/model/ApiEnum.js.map +1 -1
  73. package/lib/model/ApiEnumMember.d.ts +2 -2
  74. package/lib/model/ApiEnumMember.d.ts.map +1 -1
  75. package/lib/model/ApiEnumMember.js +1 -0
  76. package/lib/model/ApiEnumMember.js.map +1 -1
  77. package/lib/model/ApiFunction.d.ts +2 -2
  78. package/lib/model/ApiFunction.d.ts.map +1 -1
  79. package/lib/model/ApiFunction.js +1 -0
  80. package/lib/model/ApiFunction.js.map +1 -1
  81. package/lib/model/ApiIndexSignature.d.ts +2 -2
  82. package/lib/model/ApiIndexSignature.d.ts.map +1 -1
  83. package/lib/model/ApiIndexSignature.js +1 -0
  84. package/lib/model/ApiIndexSignature.js.map +1 -1
  85. package/lib/model/ApiInterface.d.ts +3 -3
  86. package/lib/model/ApiInterface.d.ts.map +1 -1
  87. package/lib/model/ApiInterface.js +1 -0
  88. package/lib/model/ApiInterface.js.map +1 -1
  89. package/lib/model/ApiMethod.d.ts +2 -2
  90. package/lib/model/ApiMethod.d.ts.map +1 -1
  91. package/lib/model/ApiMethod.js +1 -0
  92. package/lib/model/ApiMethod.js.map +1 -1
  93. package/lib/model/ApiMethodSignature.d.ts +2 -2
  94. package/lib/model/ApiMethodSignature.d.ts.map +1 -1
  95. package/lib/model/ApiMethodSignature.js +1 -0
  96. package/lib/model/ApiMethodSignature.js.map +1 -1
  97. package/lib/model/ApiModel.d.ts +3 -3
  98. package/lib/model/ApiModel.d.ts.map +1 -1
  99. package/lib/model/ApiModel.js +1 -0
  100. package/lib/model/ApiModel.js.map +1 -1
  101. package/lib/model/ApiNamespace.d.ts +2 -2
  102. package/lib/model/ApiNamespace.d.ts.map +1 -1
  103. package/lib/model/ApiNamespace.js +1 -0
  104. package/lib/model/ApiNamespace.js.map +1 -1
  105. package/lib/model/ApiPackage.d.ts +3 -3
  106. package/lib/model/ApiPackage.d.ts.map +1 -1
  107. package/lib/model/ApiPackage.js +1 -0
  108. package/lib/model/ApiPackage.js.map +1 -1
  109. package/lib/model/ApiProperty.d.ts +2 -2
  110. package/lib/model/ApiProperty.d.ts.map +1 -1
  111. package/lib/model/ApiProperty.js +1 -0
  112. package/lib/model/ApiProperty.js.map +1 -1
  113. package/lib/model/ApiPropertySignature.d.ts +2 -2
  114. package/lib/model/ApiPropertySignature.d.ts.map +1 -1
  115. package/lib/model/ApiPropertySignature.js +1 -0
  116. package/lib/model/ApiPropertySignature.js.map +1 -1
  117. package/lib/model/ApiTypeAlias.d.ts +2 -2
  118. package/lib/model/ApiTypeAlias.d.ts.map +1 -1
  119. package/lib/model/ApiTypeAlias.js +1 -0
  120. package/lib/model/ApiTypeAlias.js.map +1 -1
  121. package/lib/model/ApiVariable.d.ts +2 -2
  122. package/lib/model/ApiVariable.d.ts.map +1 -1
  123. package/lib/model/ApiVariable.js +1 -0
  124. package/lib/model/ApiVariable.js.map +1 -1
  125. package/lib/model/Deserializer.js +1 -0
  126. package/lib/model/Deserializer.js.map +1 -1
  127. package/lib/model/DeserializerContext.js +1 -0
  128. package/lib/model/DeserializerContext.js.map +1 -1
  129. package/lib/model/HeritageType.js +1 -0
  130. package/lib/model/HeritageType.js.map +1 -1
  131. package/lib/model/ModelReferenceResolver.js +1 -0
  132. package/lib/model/ModelReferenceResolver.js.map +1 -1
  133. package/lib/model/Parameter.d.ts +1 -1
  134. package/lib/model/Parameter.d.ts.map +1 -1
  135. package/lib/model/Parameter.js +1 -0
  136. package/lib/model/Parameter.js.map +1 -1
  137. package/lib/model/TypeParameter.d.ts +1 -1
  138. package/lib/model/TypeParameter.d.ts.map +1 -1
  139. package/lib/model/TypeParameter.js +1 -0
  140. package/lib/model/TypeParameter.js.map +1 -1
  141. package/package.json +6 -6
@@ -1 +1 @@
1
- {"version":3,"file":"ModelReferenceResolver.js","sourceRoot":"","sources":["../../src/model/ModelReferenceResolver.ts"],"names":[],"mappings":";AAA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ACf;QAED,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC,EAAE;YAChC,MAAM,CAAC,eAAe,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;YAC5C,OAAO,MAAM,CAAC;SACf;QAED,MAAM,CAAC,YAAY,GAAG,wBAAwB,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,gBAAgB,CAAC;QACzF,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AArMD,wDAqMC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\r\n// See LICENSE in the project root for license information.\r\n\r\nimport { DocDeclarationReference, DocMemberSelector, SelectorKind } from '@microsoft/tsdoc';\r\nimport { ApiItem, ApiItemKind } from '../items/ApiItem';\r\nimport { ApiModel } from './ApiModel';\r\nimport { ApiPackage } from './ApiPackage';\r\nimport { ApiEntryPoint } from './ApiEntryPoint';\r\nimport { ApiItemContainerMixin } from '../mixins/ApiItemContainerMixin';\r\nimport { ApiParameterListMixin } from '../mixins/ApiParameterListMixin';\r\n\r\n/**\r\n * Result object for {@link ApiModel.resolveDeclarationReference}.\r\n *\r\n * @public\r\n */\r\nexport interface IResolveDeclarationReferenceResult {\r\n /**\r\n * The referenced ApiItem, if the declaration reference could be resolved.\r\n */\r\n resolvedApiItem: ApiItem | undefined;\r\n\r\n /**\r\n * If resolvedApiItem is undefined, then this will always contain an error message explaining why the\r\n * resolution failed.\r\n */\r\n errorMessage: string | undefined;\r\n}\r\n\r\n/**\r\n * This resolves a TSDoc declaration reference by walking the `ApiModel` hierarchy.\r\n *\r\n * @remarks\r\n *\r\n * This class is analogous to `AstReferenceResolver` from the `@microsoft/api-extractor` project,\r\n * which resolves declaration references by walking the compiler state.\r\n */\r\nexport class ModelReferenceResolver {\r\n private readonly _apiModel: ApiModel;\r\n\r\n public constructor(apiModel: ApiModel) {\r\n this._apiModel = apiModel;\r\n }\r\n\r\n public resolve(\r\n declarationReference: DocDeclarationReference,\r\n contextApiItem: ApiItem | undefined\r\n ): IResolveDeclarationReferenceResult {\r\n const result: IResolveDeclarationReferenceResult = {\r\n resolvedApiItem: undefined,\r\n errorMessage: undefined\r\n };\r\n\r\n let apiPackage: ApiPackage | undefined = undefined;\r\n\r\n // Is this an absolute reference?\r\n if (declarationReference.packageName !== undefined) {\r\n apiPackage = this._apiModel.tryGetPackageByName(declarationReference.packageName);\r\n if (apiPackage === undefined) {\r\n result.errorMessage = `The package \"${declarationReference.packageName}\" could not be located`;\r\n return result;\r\n }\r\n } else {\r\n // If the package name is omitted, try to infer it from the context\r\n if (contextApiItem !== undefined) {\r\n apiPackage = contextApiItem.getAssociatedPackage();\r\n }\r\n\r\n if (apiPackage === undefined) {\r\n result.errorMessage =\r\n `The reference does not include a package name, and the package could not be inferred` +\r\n ` from the context`;\r\n return result;\r\n }\r\n }\r\n\r\n const importPath: string = declarationReference.importPath || '';\r\n\r\n const foundEntryPoints: ReadonlyArray<ApiEntryPoint> = apiPackage.findEntryPointsByPath(importPath);\r\n if (foundEntryPoints.length !== 1) {\r\n result.errorMessage = `The import path \"${importPath}\" could not be resolved`;\r\n return result;\r\n }\r\n\r\n let currentItem: ApiItem = foundEntryPoints[0];\r\n\r\n // Now search for the member reference\r\n for (const memberReference of declarationReference.memberReferences) {\r\n if (memberReference.memberSymbol !== undefined) {\r\n result.errorMessage = `Symbols are not yet supported in declaration references`;\r\n return result;\r\n }\r\n\r\n if (memberReference.memberIdentifier === undefined) {\r\n result.errorMessage = `Missing member identifier`;\r\n return result;\r\n }\r\n\r\n const identifier: string = memberReference.memberIdentifier.identifier;\r\n\r\n if (!ApiItemContainerMixin.isBaseClassOf(currentItem)) {\r\n // For example, {@link MyClass.myMethod.X} is invalid because methods cannot contain members\r\n result.errorMessage = `Unable to resolve ${JSON.stringify(\r\n identifier\r\n )} because ${currentItem.getScopedNameWithinPackage()} cannot act as a container`;\r\n return result;\r\n }\r\n\r\n const foundMembers: ReadonlyArray<ApiItem> = currentItem.findMembersByName(identifier);\r\n if (foundMembers.length === 0) {\r\n result.errorMessage = `The member reference ${JSON.stringify(identifier)} was not found`;\r\n return result;\r\n }\r\n\r\n const memberSelector: DocMemberSelector | undefined = memberReference.selector;\r\n if (memberSelector === undefined) {\r\n if (foundMembers.length > 1) {\r\n result.errorMessage = `The member reference ${JSON.stringify(identifier)} was ambiguous`;\r\n return result;\r\n }\r\n currentItem = foundMembers[0];\r\n } else {\r\n let memberSelectorResult: IResolveDeclarationReferenceResult;\r\n switch (memberSelector.selectorKind) {\r\n case SelectorKind.System:\r\n memberSelectorResult = this._selectUsingSystemSelector(foundMembers, memberSelector, identifier);\r\n break;\r\n case SelectorKind.Index:\r\n memberSelectorResult = this._selectUsingIndexSelector(foundMembers, memberSelector, identifier);\r\n break;\r\n default:\r\n result.errorMessage = `The selector \"${memberSelector.selector}\" is not a supported selector type`;\r\n return result;\r\n }\r\n if (memberSelectorResult.resolvedApiItem === undefined) {\r\n return memberSelectorResult;\r\n }\r\n currentItem = memberSelectorResult.resolvedApiItem;\r\n }\r\n }\r\n result.resolvedApiItem = currentItem;\r\n return result;\r\n }\r\n\r\n private _selectUsingSystemSelector(\r\n foundMembers: ReadonlyArray<ApiItem>,\r\n memberSelector: DocMemberSelector,\r\n identifier: string\r\n ): IResolveDeclarationReferenceResult {\r\n const result: IResolveDeclarationReferenceResult = {\r\n resolvedApiItem: undefined,\r\n errorMessage: undefined\r\n };\r\n\r\n const selectorName: string = memberSelector.selector;\r\n\r\n let selectorItemKind: ApiItemKind;\r\n switch (selectorName) {\r\n case 'class':\r\n selectorItemKind = ApiItemKind.Class;\r\n break;\r\n case 'enum':\r\n selectorItemKind = ApiItemKind.Enum;\r\n break;\r\n case 'function':\r\n selectorItemKind = ApiItemKind.Function;\r\n break;\r\n case 'interface':\r\n selectorItemKind = ApiItemKind.Interface;\r\n break;\r\n case 'namespace':\r\n selectorItemKind = ApiItemKind.Namespace;\r\n break;\r\n case 'type':\r\n selectorItemKind = ApiItemKind.TypeAlias;\r\n break;\r\n case 'variable':\r\n selectorItemKind = ApiItemKind.Variable;\r\n break;\r\n default:\r\n result.errorMessage = `Unsupported system selector \"${selectorName}\"`;\r\n return result;\r\n }\r\n\r\n const matches: ApiItem[] = foundMembers.filter((x) => x.kind === selectorItemKind);\r\n if (matches.length === 0) {\r\n result.errorMessage =\r\n `A declaration for \"${identifier}\" was not found that matches the` +\r\n ` TSDoc selector \"${selectorName}\"`;\r\n return result;\r\n }\r\n if (matches.length > 1) {\r\n result.errorMessage = `More than one declaration \"${identifier}\" matches the TSDoc selector \"${selectorName}\"`;\r\n }\r\n result.resolvedApiItem = matches[0];\r\n return result;\r\n }\r\n\r\n private _selectUsingIndexSelector(\r\n foundMembers: ReadonlyArray<ApiItem>,\r\n memberSelector: DocMemberSelector,\r\n identifier: string\r\n ): IResolveDeclarationReferenceResult {\r\n const result: IResolveDeclarationReferenceResult = {\r\n resolvedApiItem: undefined,\r\n errorMessage: undefined\r\n };\r\n\r\n const selectedMembers: ApiItem[] = [];\r\n\r\n const selectorOverloadIndex: number = parseInt(memberSelector.selector);\r\n for (const foundMember of foundMembers) {\r\n if (ApiParameterListMixin.isBaseClassOf(foundMember)) {\r\n if (foundMember.overloadIndex === selectorOverloadIndex) {\r\n selectedMembers.push(foundMember);\r\n }\r\n }\r\n }\r\n\r\n if (selectedMembers.length === 0) {\r\n result.errorMessage =\r\n `An overload for ${JSON.stringify(identifier)} was not found that matches` +\r\n ` the TSDoc selector \":${selectorOverloadIndex}\"`;\r\n return result;\r\n }\r\n\r\n if (selectedMembers.length === 1) {\r\n result.resolvedApiItem = selectedMembers[0];\r\n return result;\r\n }\r\n\r\n result.errorMessage = `The member reference ${JSON.stringify(identifier)} was ambiguous`;\r\n return result;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"ModelReferenceResolver.js","sourceRoot":"","sources":["../../src/model/ModelReferenceResolver.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;;AAO3D,2EAAwE;AACxE,2EAAwE;AAoBxE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AC,eAAe,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;YAC5C,OAAO,MAAM,CAAC;SACf;QAED,MAAM,CAAC,YAAY,GAAG,wBAAwB,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,gBAAgB,CAAC;QACzF,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AArMD,wDAqMC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\r\n// See LICENSE in the project root for license information.\r\n\r\nimport { DocDeclarationReference, DocMemberSelector, SelectorKind } from '@microsoft/tsdoc';\r\nimport { ApiItem, ApiItemKind } from '../items/ApiItem';\r\nimport { ApiModel } from './ApiModel';\r\nimport { ApiPackage } from './ApiPackage';\r\nimport { ApiEntryPoint } from './ApiEntryPoint';\r\nimport { ApiItemContainerMixin } from '../mixins/ApiItemContainerMixin';\r\nimport { ApiParameterListMixin } from '../mixins/ApiParameterListMixin';\r\n\r\n/**\r\n * Result object for {@link ApiModel.resolveDeclarationReference}.\r\n *\r\n * @public\r\n */\r\nexport interface IResolveDeclarationReferenceResult {\r\n /**\r\n * The referenced ApiItem, if the declaration reference could be resolved.\r\n */\r\n resolvedApiItem: ApiItem | undefined;\r\n\r\n /**\r\n * If resolvedApiItem is undefined, then this will always contain an error message explaining why the\r\n * resolution failed.\r\n */\r\n errorMessage: string | undefined;\r\n}\r\n\r\n/**\r\n * This resolves a TSDoc declaration reference by walking the `ApiModel` hierarchy.\r\n *\r\n * @remarks\r\n *\r\n * This class is analogous to `AstReferenceResolver` from the `@microsoft/api-extractor` project,\r\n * which resolves declaration references by walking the compiler state.\r\n */\r\nexport class ModelReferenceResolver {\r\n private readonly _apiModel: ApiModel;\r\n\r\n public constructor(apiModel: ApiModel) {\r\n this._apiModel = apiModel;\r\n }\r\n\r\n public resolve(\r\n declarationReference: DocDeclarationReference,\r\n contextApiItem: ApiItem | undefined\r\n ): IResolveDeclarationReferenceResult {\r\n const result: IResolveDeclarationReferenceResult = {\r\n resolvedApiItem: undefined,\r\n errorMessage: undefined\r\n };\r\n\r\n let apiPackage: ApiPackage | undefined = undefined;\r\n\r\n // Is this an absolute reference?\r\n if (declarationReference.packageName !== undefined) {\r\n apiPackage = this._apiModel.tryGetPackageByName(declarationReference.packageName);\r\n if (apiPackage === undefined) {\r\n result.errorMessage = `The package \"${declarationReference.packageName}\" could not be located`;\r\n return result;\r\n }\r\n } else {\r\n // If the package name is omitted, try to infer it from the context\r\n if (contextApiItem !== undefined) {\r\n apiPackage = contextApiItem.getAssociatedPackage();\r\n }\r\n\r\n if (apiPackage === undefined) {\r\n result.errorMessage =\r\n `The reference does not include a package name, and the package could not be inferred` +\r\n ` from the context`;\r\n return result;\r\n }\r\n }\r\n\r\n const importPath: string = declarationReference.importPath || '';\r\n\r\n const foundEntryPoints: ReadonlyArray<ApiEntryPoint> = apiPackage.findEntryPointsByPath(importPath);\r\n if (foundEntryPoints.length !== 1) {\r\n result.errorMessage = `The import path \"${importPath}\" could not be resolved`;\r\n return result;\r\n }\r\n\r\n let currentItem: ApiItem = foundEntryPoints[0];\r\n\r\n // Now search for the member reference\r\n for (const memberReference of declarationReference.memberReferences) {\r\n if (memberReference.memberSymbol !== undefined) {\r\n result.errorMessage = `Symbols are not yet supported in declaration references`;\r\n return result;\r\n }\r\n\r\n if (memberReference.memberIdentifier === undefined) {\r\n result.errorMessage = `Missing member identifier`;\r\n return result;\r\n }\r\n\r\n const identifier: string = memberReference.memberIdentifier.identifier;\r\n\r\n if (!ApiItemContainerMixin.isBaseClassOf(currentItem)) {\r\n // For example, {@link MyClass.myMethod.X} is invalid because methods cannot contain members\r\n result.errorMessage = `Unable to resolve ${JSON.stringify(\r\n identifier\r\n )} because ${currentItem.getScopedNameWithinPackage()} cannot act as a container`;\r\n return result;\r\n }\r\n\r\n const foundMembers: ReadonlyArray<ApiItem> = currentItem.findMembersByName(identifier);\r\n if (foundMembers.length === 0) {\r\n result.errorMessage = `The member reference ${JSON.stringify(identifier)} was not found`;\r\n return result;\r\n }\r\n\r\n const memberSelector: DocMemberSelector | undefined = memberReference.selector;\r\n if (memberSelector === undefined) {\r\n if (foundMembers.length > 1) {\r\n result.errorMessage = `The member reference ${JSON.stringify(identifier)} was ambiguous`;\r\n return result;\r\n }\r\n currentItem = foundMembers[0];\r\n } else {\r\n let memberSelectorResult: IResolveDeclarationReferenceResult;\r\n switch (memberSelector.selectorKind) {\r\n case SelectorKind.System:\r\n memberSelectorResult = this._selectUsingSystemSelector(foundMembers, memberSelector, identifier);\r\n break;\r\n case SelectorKind.Index:\r\n memberSelectorResult = this._selectUsingIndexSelector(foundMembers, memberSelector, identifier);\r\n break;\r\n default:\r\n result.errorMessage = `The selector \"${memberSelector.selector}\" is not a supported selector type`;\r\n return result;\r\n }\r\n if (memberSelectorResult.resolvedApiItem === undefined) {\r\n return memberSelectorResult;\r\n }\r\n currentItem = memberSelectorResult.resolvedApiItem;\r\n }\r\n }\r\n result.resolvedApiItem = currentItem;\r\n return result;\r\n }\r\n\r\n private _selectUsingSystemSelector(\r\n foundMembers: ReadonlyArray<ApiItem>,\r\n memberSelector: DocMemberSelector,\r\n identifier: string\r\n ): IResolveDeclarationReferenceResult {\r\n const result: IResolveDeclarationReferenceResult = {\r\n resolvedApiItem: undefined,\r\n errorMessage: undefined\r\n };\r\n\r\n const selectorName: string = memberSelector.selector;\r\n\r\n let selectorItemKind: ApiItemKind;\r\n switch (selectorName) {\r\n case 'class':\r\n selectorItemKind = ApiItemKind.Class;\r\n break;\r\n case 'enum':\r\n selectorItemKind = ApiItemKind.Enum;\r\n break;\r\n case 'function':\r\n selectorItemKind = ApiItemKind.Function;\r\n break;\r\n case 'interface':\r\n selectorItemKind = ApiItemKind.Interface;\r\n break;\r\n case 'namespace':\r\n selectorItemKind = ApiItemKind.Namespace;\r\n break;\r\n case 'type':\r\n selectorItemKind = ApiItemKind.TypeAlias;\r\n break;\r\n case 'variable':\r\n selectorItemKind = ApiItemKind.Variable;\r\n break;\r\n default:\r\n result.errorMessage = `Unsupported system selector \"${selectorName}\"`;\r\n return result;\r\n }\r\n\r\n const matches: ApiItem[] = foundMembers.filter((x) => x.kind === selectorItemKind);\r\n if (matches.length === 0) {\r\n result.errorMessage =\r\n `A declaration for \"${identifier}\" was not found that matches the` +\r\n ` TSDoc selector \"${selectorName}\"`;\r\n return result;\r\n }\r\n if (matches.length > 1) {\r\n result.errorMessage = `More than one declaration \"${identifier}\" matches the TSDoc selector \"${selectorName}\"`;\r\n }\r\n result.resolvedApiItem = matches[0];\r\n return result;\r\n }\r\n\r\n private _selectUsingIndexSelector(\r\n foundMembers: ReadonlyArray<ApiItem>,\r\n memberSelector: DocMemberSelector,\r\n identifier: string\r\n ): IResolveDeclarationReferenceResult {\r\n const result: IResolveDeclarationReferenceResult = {\r\n resolvedApiItem: undefined,\r\n errorMessage: undefined\r\n };\r\n\r\n const selectedMembers: ApiItem[] = [];\r\n\r\n const selectorOverloadIndex: number = parseInt(memberSelector.selector);\r\n for (const foundMember of foundMembers) {\r\n if (ApiParameterListMixin.isBaseClassOf(foundMember)) {\r\n if (foundMember.overloadIndex === selectorOverloadIndex) {\r\n selectedMembers.push(foundMember);\r\n }\r\n }\r\n }\r\n\r\n if (selectedMembers.length === 0) {\r\n result.errorMessage =\r\n `An overload for ${JSON.stringify(identifier)} was not found that matches` +\r\n ` the TSDoc selector \":${selectorOverloadIndex}\"`;\r\n return result;\r\n }\r\n\r\n if (selectedMembers.length === 1) {\r\n result.resolvedApiItem = selectedMembers[0];\r\n return result;\r\n }\r\n\r\n result.errorMessage = `The member reference ${JSON.stringify(identifier)} was ambiguous`;\r\n return result;\r\n }\r\n}\r\n"]}
@@ -41,6 +41,6 @@ export declare class Parameter {
41
41
  /**
42
42
  * Returns the `@param` documentation for this parameter, if present.
43
43
  */
44
- readonly tsdocParamBlock: tsdoc.DocParamBlock | undefined;
44
+ get tsdocParamBlock(): tsdoc.DocParamBlock | undefined;
45
45
  }
46
46
  //# sourceMappingURL=Parameter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Parameter.d.ts","sourceRoot":"","sources":["../../src/model/Parameter.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAG1C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAExE;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,oBAAoB,EAAE,OAAO,CAAC;IAC9B,MAAM,EAAE,qBAAqB,CAAC;CAC/B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,SAAS;IACpB;;OAEG;IACH,SAAgB,oBAAoB,EAAE,OAAO,CAAC;IAE9C;;OAEG;IACI,IAAI,EAAE,MAAM,CAAC;IAEpB,OAAO,CAAC,OAAO,CAAwB;gBAEpB,OAAO,EAAE,iBAAiB;IAM7C;;OAEG;aACQ,eAAe,EAAI,KAAK,CAAC,aAAa,GAAG,SAAS;CAO9D"}
1
+ {"version":3,"file":"Parameter.d.ts","sourceRoot":"","sources":["../../src/model/Parameter.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAG1C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAExE;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,oBAAoB,EAAE,OAAO,CAAC;IAC9B,MAAM,EAAE,qBAAqB,CAAC;CAC/B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,SAAS;IACpB;;OAEG;IACH,SAAgB,oBAAoB,EAAE,OAAO,CAAC;IAE9C;;OAEG;IACI,IAAI,EAAE,MAAM,CAAC;IAEpB,OAAO,CAAC,OAAO,CAAwB;gBAEpB,OAAO,EAAE,iBAAiB;IAM7C;;OAEG;IACH,IAAW,eAAe,IAAI,KAAK,CAAC,aAAa,GAAG,SAAS,CAM5D;CACF"}
@@ -2,6 +2,7 @@
2
2
  // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
3
3
  // See LICENSE in the project root for license information.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.Parameter = void 0;
5
6
  const ApiDocumentedItem_1 = require("../items/ApiDocumentedItem");
6
7
  /**
7
8
  * Represents a named parameter for a function-like declaration.
@@ -1 +1 @@
1
- {"version":3,"file":"Parameter.js","sourceRoot":"","sources":["../../src/model/Parameter.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;AAI3D,kEAA+D;AAc/D;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,SAAS;IAapB,YAAmB,OAA0B;QAC3C,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QACzB,IAAI,CAAC,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC;QACzD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;IAChC,CAAC;IAED;;OAEG;IACH,IAAW,eAAe;QACxB,IAAI,IAAI,CAAC,OAAO,YAAY,qCAAiB,EAAE;YAC7C,IAAI,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE;gBAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACtE;SACF;IACH,CAAC;CACF;AA7BD,8BA6BC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\r\n// See LICENSE in the project root for license information.\r\n\r\nimport * as tsdoc from '@microsoft/tsdoc';\r\n\r\nimport { ApiDocumentedItem } from '../items/ApiDocumentedItem';\r\nimport { Excerpt } from '../mixins/Excerpt';\r\nimport { ApiParameterListMixin } from '../mixins/ApiParameterListMixin';\r\n\r\n/**\r\n * Constructor options for {@link Parameter}.\r\n * @public\r\n */\r\nexport interface IParameterOptions {\r\n name: string;\r\n parameterTypeExcerpt: Excerpt;\r\n parent: ApiParameterListMixin;\r\n}\r\n\r\n/**\r\n * Represents a named parameter for a function-like declaration.\r\n *\r\n * @remarks\r\n *\r\n * `Parameter` represents a TypeScript declaration such as `x: number` in this example:\r\n *\r\n * ```ts\r\n * export function add(x: number, y: number): number {\r\n * return x + y;\r\n * }\r\n * ```\r\n *\r\n * `Parameter` objects belong to the {@link (ApiParameterListMixin:interface).parameters} collection.\r\n *\r\n * @public\r\n */\r\nexport class Parameter {\r\n /**\r\n * An {@link Excerpt} that describes the type of the parameter.\r\n */\r\n public readonly parameterTypeExcerpt: Excerpt;\r\n\r\n /**\r\n * The parameter name.\r\n */\r\n public name: string;\r\n\r\n private _parent: ApiParameterListMixin;\r\n\r\n public constructor(options: IParameterOptions) {\r\n this.name = options.name;\r\n this.parameterTypeExcerpt = options.parameterTypeExcerpt;\r\n this._parent = options.parent;\r\n }\r\n\r\n /**\r\n * Returns the `@param` documentation for this parameter, if present.\r\n */\r\n public get tsdocParamBlock(): tsdoc.DocParamBlock | undefined {\r\n if (this._parent instanceof ApiDocumentedItem) {\r\n if (this._parent.tsdocComment) {\r\n return this._parent.tsdocComment.params.tryGetBlockByName(this.name);\r\n }\r\n }\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"Parameter.js","sourceRoot":"","sources":["../../src/model/Parameter.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;;AAI3D,kEAA+D;AAc/D;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,SAAS;IAapB,YAAmB,OAA0B;QAC3C,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QACzB,IAAI,CAAC,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC;QACzD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;IAChC,CAAC;IAED;;OAEG;IACH,IAAW,eAAe;QACxB,IAAI,IAAI,CAAC,OAAO,YAAY,qCAAiB,EAAE;YAC7C,IAAI,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE;gBAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACtE;SACF;IACH,CAAC;CACF;AA7BD,8BA6BC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\r\n// See LICENSE in the project root for license information.\r\n\r\nimport * as tsdoc from '@microsoft/tsdoc';\r\n\r\nimport { ApiDocumentedItem } from '../items/ApiDocumentedItem';\r\nimport { Excerpt } from '../mixins/Excerpt';\r\nimport { ApiParameterListMixin } from '../mixins/ApiParameterListMixin';\r\n\r\n/**\r\n * Constructor options for {@link Parameter}.\r\n * @public\r\n */\r\nexport interface IParameterOptions {\r\n name: string;\r\n parameterTypeExcerpt: Excerpt;\r\n parent: ApiParameterListMixin;\r\n}\r\n\r\n/**\r\n * Represents a named parameter for a function-like declaration.\r\n *\r\n * @remarks\r\n *\r\n * `Parameter` represents a TypeScript declaration such as `x: number` in this example:\r\n *\r\n * ```ts\r\n * export function add(x: number, y: number): number {\r\n * return x + y;\r\n * }\r\n * ```\r\n *\r\n * `Parameter` objects belong to the {@link (ApiParameterListMixin:interface).parameters} collection.\r\n *\r\n * @public\r\n */\r\nexport class Parameter {\r\n /**\r\n * An {@link Excerpt} that describes the type of the parameter.\r\n */\r\n public readonly parameterTypeExcerpt: Excerpt;\r\n\r\n /**\r\n * The parameter name.\r\n */\r\n public name: string;\r\n\r\n private _parent: ApiParameterListMixin;\r\n\r\n public constructor(options: IParameterOptions) {\r\n this.name = options.name;\r\n this.parameterTypeExcerpt = options.parameterTypeExcerpt;\r\n this._parent = options.parent;\r\n }\r\n\r\n /**\r\n * Returns the `@param` documentation for this parameter, if present.\r\n */\r\n public get tsdocParamBlock(): tsdoc.DocParamBlock | undefined {\r\n if (this._parent instanceof ApiDocumentedItem) {\r\n if (this._parent.tsdocComment) {\r\n return this._parent.tsdocComment.params.tryGetBlockByName(this.name);\r\n }\r\n }\r\n }\r\n}\r\n"]}
@@ -73,6 +73,6 @@ export declare class TypeParameter {
73
73
  /**
74
74
  * Returns the `@typeParam` documentation for this parameter, if present.
75
75
  */
76
- readonly tsdocTypeParamBlock: tsdoc.DocParamBlock | undefined;
76
+ get tsdocTypeParamBlock(): tsdoc.DocParamBlock | undefined;
77
77
  }
78
78
  //# sourceMappingURL=TypeParameter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TypeParameter.d.ts","sourceRoot":"","sources":["../../src/model/TypeParameter.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAG1C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAEhF;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,EAAE,OAAO,CAAC;IAC3B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,MAAM,EAAE,yBAAyB,CAAC;CACnC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,qBAAa,aAAa;IACxB;;;;;;;;;;;OAWG;IACH,SAAgB,iBAAiB,EAAE,OAAO,CAAC;IAE3C;;;;;;;;;;;OAWG;IACH,SAAgB,kBAAkB,EAAE,OAAO,CAAC;IAE5C;;OAEG;IACI,IAAI,EAAE,MAAM,CAAC;IAEpB,OAAO,CAAC,OAAO,CAA4B;gBAExB,OAAO,EAAE,qBAAqB;IAOjD;;OAEG;aACQ,mBAAmB,EAAI,KAAK,CAAC,aAAa,GAAG,SAAS;CAOlE"}
1
+ {"version":3,"file":"TypeParameter.d.ts","sourceRoot":"","sources":["../../src/model/TypeParameter.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAG1C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAEhF;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,EAAE,OAAO,CAAC;IAC3B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,MAAM,EAAE,yBAAyB,CAAC;CACnC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,qBAAa,aAAa;IACxB;;;;;;;;;;;OAWG;IACH,SAAgB,iBAAiB,EAAE,OAAO,CAAC;IAE3C;;;;;;;;;;;OAWG;IACH,SAAgB,kBAAkB,EAAE,OAAO,CAAC;IAE5C;;OAEG;IACI,IAAI,EAAE,MAAM,CAAC;IAEpB,OAAO,CAAC,OAAO,CAA4B;gBAExB,OAAO,EAAE,qBAAqB;IAOjD;;OAEG;IACH,IAAW,mBAAmB,IAAI,KAAK,CAAC,aAAa,GAAG,SAAS,CAMhE;CACF"}
@@ -2,6 +2,7 @@
2
2
  // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
3
3
  // See LICENSE in the project root for license information.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.TypeParameter = void 0;
5
6
  const ApiDocumentedItem_1 = require("../items/ApiDocumentedItem");
6
7
  /**
7
8
  * Represents a named type parameter for a generic declaration.
@@ -1 +1 @@
1
- {"version":3,"file":"TypeParameter.js","sourceRoot":"","sources":["../../src/model/TypeParameter.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;AAI3D,kEAA+D;AAe/D;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAa,aAAa;IAoCxB,YAAmB,OAA8B;QAC/C,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QACzB,IAAI,CAAC,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;QACnD,IAAI,CAAC,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC;QACrD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;IAChC,CAAC;IAED;;OAEG;IACH,IAAW,mBAAmB;QAC5B,IAAI,IAAI,CAAC,OAAO,YAAY,qCAAiB,EAAE;YAC7C,IAAI,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE;gBAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aAC1E;SACF;IACH,CAAC;CACF;AArDD,sCAqDC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\r\n// See LICENSE in the project root for license information.\r\n\r\nimport * as tsdoc from '@microsoft/tsdoc';\r\n\r\nimport { ApiDocumentedItem } from '../items/ApiDocumentedItem';\r\nimport { Excerpt } from '../mixins/Excerpt';\r\nimport { ApiTypeParameterListMixin } from '../mixins/ApiTypeParameterListMixin';\r\n\r\n/**\r\n * Constructor options for {@link TypeParameter}.\r\n * @public\r\n */\r\nexport interface ITypeParameterOptions {\r\n name: string;\r\n constraintExcerpt: Excerpt;\r\n defaultTypeExcerpt: Excerpt;\r\n parent: ApiTypeParameterListMixin;\r\n}\r\n\r\n/**\r\n * Represents a named type parameter for a generic declaration.\r\n *\r\n * @remarks\r\n *\r\n * `TypeParameter` represents a TypeScript declaration such as `T` in this example:\r\n *\r\n * ```ts\r\n * interface IIdentifier {\r\n * getCode(): string;\r\n * }\r\n *\r\n * class BarCode implements IIdentifier {\r\n * private _value: number;\r\n * public getCode(): string { return this._value.toString(); }\r\n * }\r\n *\r\n * class Book<TIdentifier extends IIdentifier = BarCode> {\r\n * public identifier: TIdentifier;\r\n * }\r\n * ```\r\n *\r\n * `TypeParameter` objects belong to the {@link (ApiTypeParameterListMixin:interface).typeParameters} collection.\r\n *\r\n * @public\r\n */\r\nexport class TypeParameter {\r\n /**\r\n * An {@link Excerpt} that describes the base constraint of the type parameter.\r\n *\r\n * @remarks\r\n * In the example below, the `constraintExcerpt` would correspond to the `IIdentifier` subexpression:\r\n *\r\n * ```ts\r\n * class Book<TIdentifier extends IIdentifier = BarCode> {\r\n * public identifier: TIdentifier;\r\n * }\r\n * ```\r\n */\r\n public readonly constraintExcerpt: Excerpt;\r\n\r\n /**\r\n * An {@link Excerpt} that describes the default type of the type parameter.\r\n *\r\n * @remarks\r\n * In the example below, the `defaultTypeExcerpt` would correspond to the `BarCode` subexpression:\r\n *\r\n * ```ts\r\n * class Book<TIdentifier extends IIdentifier = BarCode> {\r\n * public identifier: TIdentifier;\r\n * }\r\n * ```\r\n */\r\n public readonly defaultTypeExcerpt: Excerpt;\r\n\r\n /**\r\n * The parameter name.\r\n */\r\n public name: string;\r\n\r\n private _parent: ApiTypeParameterListMixin;\r\n\r\n public constructor(options: ITypeParameterOptions) {\r\n this.name = options.name;\r\n this.constraintExcerpt = options.constraintExcerpt;\r\n this.defaultTypeExcerpt = options.defaultTypeExcerpt;\r\n this._parent = options.parent;\r\n }\r\n\r\n /**\r\n * Returns the `@typeParam` documentation for this parameter, if present.\r\n */\r\n public get tsdocTypeParamBlock(): tsdoc.DocParamBlock | undefined {\r\n if (this._parent instanceof ApiDocumentedItem) {\r\n if (this._parent.tsdocComment) {\r\n return this._parent.tsdocComment.typeParams.tryGetBlockByName(this.name);\r\n }\r\n }\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"TypeParameter.js","sourceRoot":"","sources":["../../src/model/TypeParameter.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;;AAI3D,kEAA+D;AAe/D;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAa,aAAa;IAoCxB,YAAmB,OAA8B;QAC/C,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QACzB,IAAI,CAAC,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;QACnD,IAAI,CAAC,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC;QACrD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;IAChC,CAAC;IAED;;OAEG;IACH,IAAW,mBAAmB;QAC5B,IAAI,IAAI,CAAC,OAAO,YAAY,qCAAiB,EAAE;YAC7C,IAAI,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE;gBAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aAC1E;SACF;IACH,CAAC;CACF;AArDD,sCAqDC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\r\n// See LICENSE in the project root for license information.\r\n\r\nimport * as tsdoc from '@microsoft/tsdoc';\r\n\r\nimport { ApiDocumentedItem } from '../items/ApiDocumentedItem';\r\nimport { Excerpt } from '../mixins/Excerpt';\r\nimport { ApiTypeParameterListMixin } from '../mixins/ApiTypeParameterListMixin';\r\n\r\n/**\r\n * Constructor options for {@link TypeParameter}.\r\n * @public\r\n */\r\nexport interface ITypeParameterOptions {\r\n name: string;\r\n constraintExcerpt: Excerpt;\r\n defaultTypeExcerpt: Excerpt;\r\n parent: ApiTypeParameterListMixin;\r\n}\r\n\r\n/**\r\n * Represents a named type parameter for a generic declaration.\r\n *\r\n * @remarks\r\n *\r\n * `TypeParameter` represents a TypeScript declaration such as `T` in this example:\r\n *\r\n * ```ts\r\n * interface IIdentifier {\r\n * getCode(): string;\r\n * }\r\n *\r\n * class BarCode implements IIdentifier {\r\n * private _value: number;\r\n * public getCode(): string { return this._value.toString(); }\r\n * }\r\n *\r\n * class Book<TIdentifier extends IIdentifier = BarCode> {\r\n * public identifier: TIdentifier;\r\n * }\r\n * ```\r\n *\r\n * `TypeParameter` objects belong to the {@link (ApiTypeParameterListMixin:interface).typeParameters} collection.\r\n *\r\n * @public\r\n */\r\nexport class TypeParameter {\r\n /**\r\n * An {@link Excerpt} that describes the base constraint of the type parameter.\r\n *\r\n * @remarks\r\n * In the example below, the `constraintExcerpt` would correspond to the `IIdentifier` subexpression:\r\n *\r\n * ```ts\r\n * class Book<TIdentifier extends IIdentifier = BarCode> {\r\n * public identifier: TIdentifier;\r\n * }\r\n * ```\r\n */\r\n public readonly constraintExcerpt: Excerpt;\r\n\r\n /**\r\n * An {@link Excerpt} that describes the default type of the type parameter.\r\n *\r\n * @remarks\r\n * In the example below, the `defaultTypeExcerpt` would correspond to the `BarCode` subexpression:\r\n *\r\n * ```ts\r\n * class Book<TIdentifier extends IIdentifier = BarCode> {\r\n * public identifier: TIdentifier;\r\n * }\r\n * ```\r\n */\r\n public readonly defaultTypeExcerpt: Excerpt;\r\n\r\n /**\r\n * The parameter name.\r\n */\r\n public name: string;\r\n\r\n private _parent: ApiTypeParameterListMixin;\r\n\r\n public constructor(options: ITypeParameterOptions) {\r\n this.name = options.name;\r\n this.constraintExcerpt = options.constraintExcerpt;\r\n this.defaultTypeExcerpt = options.defaultTypeExcerpt;\r\n this._parent = options.parent;\r\n }\r\n\r\n /**\r\n * Returns the `@typeParam` documentation for this parameter, if present.\r\n */\r\n public get tsdocTypeParamBlock(): tsdoc.DocParamBlock | undefined {\r\n if (this._parent instanceof ApiDocumentedItem) {\r\n if (this._parent.tsdocComment) {\r\n return this._parent.tsdocComment.typeParams.tryGetBlockByName(this.name);\r\n }\r\n }\r\n }\r\n}\r\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/api-extractor-model",
3
- "version": "7.9.7",
3
+ "version": "7.10.3",
4
4
  "description": "A helper library for loading and saving the .api.json files created by API Extractor",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,13 +14,13 @@
14
14
  "build": "heft test --clean"
15
15
  },
16
16
  "dependencies": {
17
- "@rushstack/node-core-library": "3.33.6",
18
- "@microsoft/tsdoc": "0.12.19"
17
+ "@microsoft/tsdoc": "0.12.19",
18
+ "@rushstack/node-core-library": "3.34.3"
19
19
  },
20
20
  "devDependencies": {
21
- "@microsoft/rush-stack-compiler-3.5": "0.8.10",
22
- "@rushstack/eslint-config": "2.1.1",
23
- "@rushstack/heft": "0.8.0",
21
+ "@rushstack/eslint-config": "2.2.1",
22
+ "@rushstack/heft": "0.14.0",
23
+ "@rushstack/heft-node-rig": "0.1.0",
24
24
  "@types/heft-jest": "1.0.1",
25
25
  "@types/node": "10.17.13"
26
26
  }