github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/cmd/compile/internal/types2/stmt.go (about) 1 // Copyright 2012 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // This file implements typechecking of statements. 6 7 package types2 8 9 // RangeKeyVal returns the key and value types for a range over typ. 10 // Exported for use by the compiler (does not exist in go/types). 11 func RangeKeyVal(typ Type) (Type, Type)