-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
I've come across a problem where I want to copy everything except the position.
To solve this problem I cloned astcopy.go and made changes to all functions.
For example, this is how the UnaryExpr is now copied:
func UnaryExpr(x *ast.UnaryExpr) *ast.UnaryExpr {
if x == nil {
return nil
}
return &ast.UnaryExpr{
Op: x.Op,
X: copyExpr(x.X),
}
}Is this something you would like to incorporate into this repo. Otherwise I will clone this repo and make an alternative version of it.
cristaloleg
Metadata
Metadata
Assignees
Labels
No labels