UNPKG

st-bundle

Version:

CLI for watching and bundling SpringType projects.

27 lines (26 loc) 789 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class ImportVariable { constructor(link) { this.link = link; } getText() { if (this.importSpecifierNode) return this.importSpecifierNode.getText(); if (this.defaultImportDeclarationNode) return this.defaultImportDeclarationNode.getText(); } toJSON() { const obj = {}; if (this.name) obj.name = this.name; if (this.local) obj.local = this.local; if (this.importSpecifierNode) obj.importSpecifierNode = true; if (this.defaultImportDeclarationNode) obj.defaultImportDeclarationNode = true; return obj; } } exports.ImportVariable = ImportVariable;