UNPKG

ts-simple-ast

Version:

TypeScript compiler wrapper for AST navigation and code generation.

38 lines (36 loc) 1.48 kB
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("./../../../utils"); const DocumentSpan_1 = require("./DocumentSpan"); const SymbolDisplayPart_1 = require("./SymbolDisplayPart"); class ImplementationLocation extends DocumentSpan_1.DocumentSpan { /** * @internal */ constructor(global, compilerObject) { super(global, compilerObject); } /** * Gets the kind. */ getKind() { return this.compilerObject.kind; } /** * Gets the display parts. */ getDisplayParts() { return this.compilerObject.displayParts.map(p => new SymbolDisplayPart_1.SymbolDisplayPart(p)); } } __decorate([ utils_1.Memoize ], ImplementationLocation.prototype, "getDisplayParts", null); exports.ImplementationLocation = ImplementationLocation; //# sourceMappingURL=ImplementationLocation.js.map