projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Giant blob of minor changes
[dotfiles/.git]
/
.config
/
coc
/
extensions
/
coc-go-data
/
tools
/
pkg
/
mod
/
golang.org
/
x
/
tools@v0.0.0-20201105173854-bc9fc8d8c4bc
/
go
/
ast
/
astutil
/
util.go
1
package astutil
2
3
import "go/ast"
4
5
// Unparen returns e with any enclosing parentheses stripped.
6
func Unparen(e ast.Expr) ast.Expr {
7
for {
8
p, ok := e.(*ast.ParenExpr)
9
if !ok {
10
return e
11
}
12
e = p.X
13
}
14
}