UNPKG

1.26 kBJavaScriptView Raw
1"use strict";
2// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
3// See LICENSE in the project root for license information.
4Object.defineProperty(exports, "__esModule", { value: true });
5exports.InternalDeclarationMetadata = exports.DeclarationMetadata = void 0;
6/**
7 * Stores the Collector's additional analysis for a specific `AstDeclaration` signature. This object is assigned to
8 * `AstDeclaration.declarationMetadata` but consumers must always obtain it by calling
9 * `Collector.fetchDeclarationMetadata()`.
10 *
11 * Note that ancillary declarations share their `ApiItemMetadata` with the main declaration,
12 * whereas a separate `DeclarationMetadata` object is created for each declaration.
13 */
14class DeclarationMetadata {
15}
16exports.DeclarationMetadata = DeclarationMetadata;
17/**
18 * Used internally by the `Collector` to build up `DeclarationMetadata`.
19 */
20class InternalDeclarationMetadata extends DeclarationMetadata {
21 constructor() {
22 super(...arguments);
23 this.tsdocParserContext = undefined;
24 this.isAncillary = false;
25 this.ancillaryDeclarations = [];
26 }
27}
28exports.InternalDeclarationMetadata = InternalDeclarationMetadata;
29//# sourceMappingURL=DeclarationMetadata.js.map
\No newline at end of file