- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for CodeVal (0.09 sec)
-
src/internal/pkgbits/codes.go
Value() int } // A CodeVal distinguishes among go/constant.Value encodings. type CodeVal int func (c CodeVal) Marker() SyncMarker { return SyncVal } func (c CodeVal) Value() int { return int(c) } // Note: These values are public and cannot be changed without // updating the go/types importers. const ( ValBool CodeVal = iota ValString ValInt64 ValBigInt ValBigRat
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 25 16:15:47 UTC 2022 - 1.7K bytes - Viewed (0) -
src/internal/pkgbits/decoder.go
val := r.scalar() if isComplex { val = constant.BinaryOp(val, token.ADD, constant.MakeImag(r.scalar())) } return val } func (r *Decoder) scalar() constant.Value { switch tag := CodeVal(r.Code(SyncVal)); tag { default: panic(fmt.Errorf("unexpected scalar tag: %v", tag)) case ValBool: return constant.MakeBool(r.Bool()) case ValString: return constant.MakeString(r.String())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 27 20:58:46 UTC 2022 - 13.2K bytes - Viewed (0)