UNPKG

929 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.PointerDataType = void 0;
4const pointer_1 = require("../abstract_data_types/types/pointer");
5class PointerDataType extends pointer_1.AbstractPointerDataType {
6 constructor(destDataType, parentDataType, dataTypeFactory) {
7 const destDataItem = destDataType.getDataItem();
8 const dataItem = { name: `ptr<${destDataItem.name}>`, type: `ptr<${destDataItem.type}>` };
9 super(dataItem, dataTypeFactory, destDataType, parentDataType);
10 }
11 getSignatureType() {
12 return this._destination.getSignature(false);
13 }
14 getSignature(isDetailed) {
15 return this._destination.getSignature(isDetailed);
16 }
17 getDefaultValue() {
18 const defaultValue = this._destination.getDefaultValue();
19 return defaultValue;
20 }
21}
22exports.PointerDataType = PointerDataType;
23//# sourceMappingURL=pointer.js.map
\No newline at end of file