blob: 250db7c64fa2ef6e505d83d2f7fa88ee6f47175d (
plain) (
tree)
|
|
import { DataItem } from 'ethereum-types';
import { DataType } from '../abstract_data_types/data_type';
import { DataTypeFactory } from '../abstract_data_types/interfaces';
import { AbstractPointerDataType } from '../abstract_data_types/types/pointer';
export class PointerDataType extends AbstractPointerDataType {
constructor(destDataType: DataType, parentDataType: DataType, dataTypeFactory: DataTypeFactory) {
const destDataItem = destDataType.getDataItem();
const dataItem: DataItem = { name: `ptr<${destDataItem.name}>`, type: `ptr<${destDataItem.type}>` };
super(dataItem, dataTypeFactory, destDataType, parentDataType);
}
public getSignatureType(): string {
return this._destination.getSignature(false);
}
public getSignature(isDetailed?: boolean): string {
return this._destination.getSignature(isDetailed);
}
}
|