UNPKG

@jqassistant/ts-lce

Version:

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

27 lines (26 loc) 900 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LCEExternalDeclaration = exports.LCEExternalModule = void 0; const concept_1 = require("../concept"); const context_1 = require("../context"); /** * Represents a module that exists outside the processed projects */ class LCEExternalModule extends concept_1.LCENamedConcept { declarations; static conceptId = "external-module"; constructor(globalFqn, declarations) { super(new context_1.FQN(globalFqn)); this.declarations = declarations; } } exports.LCEExternalModule = LCEExternalModule; class LCEExternalDeclaration extends concept_1.LCENamedConcept { name; static conceptId = "external-declaration"; constructor(globalFqn, name) { super(new context_1.FQN(globalFqn)); this.name = name; } } exports.LCEExternalDeclaration = LCEExternalDeclaration;