| 1 2 3 4 5 6 7 8 9 10 11 12 13 | export default class LLVMType {
/**
* @param {LLVMType|LLVMIdentifier|LLVMVector|LLVMIntType}
*/
constructor(root: LLVMType, isPointer: bool) {
this.root = root;
this.isPointer = isPointer;
}
generate() {
return this.root.generate() + (this.isPointer ? "*" : "")
}
} |