mirror of https://github.com/aamine/cbc
26 lines
497 B
Java
26 lines
497 B
Java
package net.loveruby.cflat.ast;
|
|
import net.loveruby.cflat.asm.*;
|
|
|
|
public class BreakNode extends Node {
|
|
public BreakNode() {
|
|
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("break label is null");
|
|
}
|
|
return label;
|
|
}
|
|
}
|