UNPKG

ts-simple-ast

Version:

TypeScript compiler wrapper for AST navigation and code generation.

23 lines (21 loc) 648 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const common_1 = require("./../common"); class HeritageClause extends common_1.Node { /** * Gets all the types for the heritage clause. */ getTypes() { if (this.compilerNode.types == null) return []; return this.compilerNode.types.map(t => this.global.compilerFactory.getNodeFromCompilerNode(t, this.sourceFile)); } /** * Gets the heritage clause token. */ getToken() { return this.compilerNode.token; } } exports.HeritageClause = HeritageClause; //# sourceMappingURL=HeritageClause.js.map