All files / vsl/generator LLVMVector.js

0% Statements 0/3
100% Branches 0/0
0% Functions 0/2
0% Lines 0/3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17                                 
export default class LLVMVector {
    /**
     * @param {number} length - length of vector
     * @param {LLVMType} type - Type of the vector's items
     */
    constructor(length: number, type: LLVMType) {
        /** @type {number} */
        this.length = length;
        
        /** @type {LLVMType} */
        this.type = type;
    }
    
    generate() {
        return `[${this.length} x ${this.type.generate()}]`
    }
}