summaryrefslogtreecommitdiff
path: root/vendor/golang.org/x/tools/go/ast/astutil/util.go
blob: c820b20849953acdb08d5299c5b8f99735ff821a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package astutil

import "go/ast"

// Unparen returns e with any enclosing parentheses stripped.
// Deprecated: use [ast.Unparen].
//
//go:fix inline
func Unparen(e ast.Expr) ast.Expr { return ast.Unparen(e) }