mirror of https://github.com/aamine/cbc
26 lines
513 B
Java
26 lines
513 B
Java
package net.loveruby.cflat.ast;
|
|
import net.loveruby.cflat.asm.*;
|
|
|
|
public class ContinueNode extends Node {
|
|
public ContinueNode() {
|
|
super();
|
|
}
|
|
|
|
public void accept(ASTVisitor visitor) {
|
|
visitor.visit(this);
|
|
}
|
|
|
|
protected Label label;
|
|
|
|
public void setTargetLabel(Label label) {
|
|
this.label = label;
|
|
}
|
|
|
|
public Label targetLabel() {
|
|
if (label == null) {
|
|
throw new Error("continue target label is null");
|
|
}
|
|
return label;
|
|
}
|
|
}
|