UNPKG

@jqassistant/ts-lce

Version:

Tool to extract language concepts from a TypeScript codebase and export them to a JSON file.

35 lines (34 loc) 1.57 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LCEExportDeclaration = void 0; const concept_1 = require("../concept"); class LCEExportDeclaration extends concept_1.LCEConcept { identifier; alias; globalDeclFqn; importSource; isDefault; kind; sourceFilePathAbsolute; static conceptId = "export-declaration"; /** * @param identifier identifier of the exported declaration * @param alias optional alias that may be specified within the export statement * @param globalDeclFqn if available: global FQN of the exported declaration (FQN uses re-exporting module path for re-exports) * @param importSource import source (can be a node path or an absolute path) * @param isDefault whether the export is a default export or a standard named export * @param kind type of the export: "value" is used for declarations, "type" indicates a type alias export and "namespace" a "*" export * @param sourceFilePathAbsolute absolute path of the source file in which the processed export statement is located */ constructor(identifier, alias, globalDeclFqn, importSource, isDefault, kind, sourceFilePathAbsolute) { super(); this.identifier = identifier; this.alias = alias; this.globalDeclFqn = globalDeclFqn; this.importSource = importSource; this.isDefault = isDefault; this.kind = kind; this.sourceFilePathAbsolute = sourceFilePathAbsolute; } } exports.LCEExportDeclaration = LCEExportDeclaration;