iedc-go/vendor/github.com/robertkrimen/otto/result.go

29 lines
473 B
Go
Raw Normal View History

2023-03-02 19:12:15 +00:00
package otto
type _resultKind int
const (
_ _resultKind = iota
resultReturn
resultBreak
resultContinue
)
type _result struct {
kind _resultKind
value Value
target string
}
func newReturnResult(value Value) _result {
return _result{resultReturn, value, ""}
}
func newContinueResult(target string) _result {
return _result{resultContinue, emptyValue, target}
}
func newBreakResult(target string) _result {
return _result{resultBreak, emptyValue, target}
}