github.com/MontFerret/ferret@v0.18.0/pkg/drivers/cdp/eval/return.go (about)

     1  package eval
     2  
     3  type ReturnType int
     4  
     5  const (
     6  	ReturnNothing ReturnType = iota
     7  	ReturnValue
     8  	ReturnRef
     9  )
    10  
    11  func (rt ReturnType) String() string {
    12  	switch rt {
    13  	case ReturnValue:
    14  		return "value"
    15  	case ReturnRef:
    16  		return "reference"
    17  	default:
    18  		return "nothing"
    19  	}
    20  }