mirror of
				https://github.com/StackExchange/dnscontrol.git
				synced 2024-05-11 05:55:12 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
		
			495 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			495 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package otto
 | 
						|
 | 
						|
import ()
 | 
						|
 | 
						|
type _resultKind int
 | 
						|
 | 
						|
const (
 | 
						|
	resultNormal _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}
 | 
						|
}
 |