(stmt *Stmt)
| 144 | } |
| 145 | |
| 146 | func returnCode(stmt *Stmt) (func(*Context) (interface{}, error), error) { |
| 147 | retValue, err := NewValue(stmt.RawData["return"]) |
| 148 | if err != nil { |
| 149 | return nil, err |
| 150 | } |
| 151 | return func(context *Context) (interface{}, error) { |
| 152 | val := retValue.Value(context) |
| 153 | return val, breakCode{} |
| 154 | }, nil |
| 155 | } |
| 156 | |
| 157 | func fail(stmt *Stmt) (func(*Context) (interface{}, error), error) { |
| 158 | return func(context *Context) (interface{}, error) { |