compiler: add go test command
This commit is contained in:
13
runtime/internal/lib/go/parser/parser.go
Normal file
13
runtime/internal/lib/go/parser/parser.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package parser
|
||||
|
||||
import "go/ast"
|
||||
|
||||
func unparen(e ast.Expr) ast.Expr {
|
||||
for {
|
||||
paren, ok := e.(*ast.ParenExpr)
|
||||
if !ok {
|
||||
return e
|
||||
}
|
||||
e = paren.X
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user