public class ReturnStatement extends Statement
| Modifier and Type | Field and Description |
|---|---|
protected Expr |
_expr |
BREAK_FALL_THROUGH, FALL_THROUGH, RETURN| Constructor and Description |
|---|
ReturnStatement(Expr expr)
Creates the echo statement.
|
ReturnStatement(Location location,
Expr expr)
Creates the echo statement.
|
| Modifier and Type | Method and Description |
|---|---|
Value |
execute(Env env)
Executes the statement, returning the expression value.
|
int |
fallThrough()
Returns true if control can go past the statement.
|