All files / generator LLVMMethodPrototype.js

0% Statements 0/4
100% Branches 0/0
0% Functions 0/3
0% Lines 0/4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16                               
/**
 * Specifies the header `T f(a: U)` of a method.
 */
export default class LLVMMethodPrototype {
    constructor(type: LLVMType[], name: LLVMIdentifier, args: LLVMType[]) {
        this.type = type;
        this.args = args;
    }
    
    /** @override */
    generate() {
        `${this.type.generate()} ${this.name.generate()}(${
            this.args.map(i => i.generate()).join(", ")
        })`
    }
}