func go/constant.ToInt

7 uses

	go/constant (current package)
		value.go#L854: func ToInt(x Value) Value {
		value.go#L899: 			return ToInt(re)

	go/types
		const.go#L83: 		x := constant.ToInt(x)
		expr.go#L596: 		xval = constant.ToInt(x.val)
		expr.go#L617: 		yval = constant.ToInt(y.val) // consider -1, 1.0, but not -1.1
		expr.go#L1184: 		i := constant.ToInt(x)
		typexpr.go#L535: 		if val := constant.ToInt(x.val); val.Kind() == constant.Int {