UNPKG

1.32 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.AstModule = exports.AstModuleExportInfo = void 0;
6/**
7 * Represents information collected by {@link AstSymbolTable.fetchAstModuleExportInfo}
8 */
9class AstModuleExportInfo {
10 constructor() {
11 this.exportedLocalEntities = new Map();
12 this.starExportedExternalModules = new Set();
13 }
14}
15exports.AstModuleExportInfo = AstModuleExportInfo;
16/**
17 * An internal data structure that represents a source file that is analyzed by AstSymbolTable.
18 */
19class AstModule {
20 constructor(options) {
21 this.sourceFile = options.sourceFile;
22 this.moduleSymbol = options.moduleSymbol;
23 this.externalModulePath = options.externalModulePath;
24 this.starExportedModules = new Set();
25 this.cachedExportedEntities = new Map();
26 this.astModuleExportInfo = undefined;
27 }
28 /**
29 * If false, then this source file is part of the working package being processed by the `Collector`.
30 */
31 get isExternal() {
32 return this.externalModulePath !== undefined;
33 }
34}
35exports.AstModule = AstModule;
36//# sourceMappingURL=AstModule.js.map
\No newline at end of file