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);
}
}