github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/cmd/compile/internal/types2/util.go (about) 1 // Copyright 2023 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 contains various functionality that is 6 // different between go/types and types2. Factoring 7 // out this code allows more of the rest of the code 8 // to be shared. 9 10 package types2 11 12 import ( 13 "github.com/shogo82148/std/cmd/compile/internal/syntax" 14 ) 15 16 // ExprString returns a string representation of x. 17 func ExprString(x syntax.Node) string