-
-
Notifications
You must be signed in to change notification settings - Fork 941
Expand file tree
/
Copy pathIRBreakJump.java
More file actions
21 lines (17 loc) · 742 Bytes
/
IRBreakJump.java
File metadata and controls
21 lines (17 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package org.jruby.ir.runtime;
import org.jruby.exceptions.Unrescuable;
import org.jruby.runtime.DynamicScope;
import org.jruby.runtime.builtin.IRubyObject;
public class IRBreakJump extends IRJump implements Unrescuable {
public final DynamicScope scopeToReturnTo;
public final IRubyObject breakValue;
public boolean breakInEval;
private IRBreakJump(DynamicScope scopeToReturnTo, IRubyObject rv, boolean breakInEval) {
this.scopeToReturnTo = scopeToReturnTo;
this.breakValue = rv;
this.breakInEval = breakInEval;
}
public static IRBreakJump create(DynamicScope scopeToReturnTo, IRubyObject rv, boolean breakInEval) {
return new IRBreakJump(scopeToReturnTo, rv, breakInEval);
}
}