All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.qbicc.machine.llvm.impl.DISubrangeImpl Maven / Gradle / Ivy

package org.qbicc.machine.llvm.impl;

import org.qbicc.machine.llvm.debuginfo.DISubrange;

import java.io.IOException;

final class DISubrangeImpl extends AbstractMetadataNode implements DISubrange {
    private final long count;

    DISubrangeImpl(final int index, final long count) {
        super(index);
        this.count = count;
    }

    public Appendable appendTo(Appendable target) throws IOException {
        super.appendTo(target);

        target.append("!DISubrange(count: ");
        appendDecimal(target, count);

        target.append(')');
        return appendTrailer(target);
    }

    public DISubrange comment(String comment) {
        return (DISubrange) super.comment(comment);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy