Update dependencies to support Generics (#360)
* feat(copy_ast): add ast.IndexListExpr case * feat(go.mod): add dependencies (golang.org/x/tools v0.1.0 => v0.1.10)
This commit is contained in:
@@ -263,6 +263,13 @@ func copyAST(original ast.Node) ast.Node {
|
||||
Index: exprFromMap(m, node.Index),
|
||||
Rbrack: node.Rbrack,
|
||||
}
|
||||
case *ast.IndexListExpr:
|
||||
m[node] = &ast.IndexListExpr{
|
||||
X: exprFromMap(m, node.X),
|
||||
Lbrack: node.Lbrack,
|
||||
Indices: copyExprList(m, node.Indices),
|
||||
Rbrack: node.Rbrack,
|
||||
}
|
||||
case *ast.InterfaceType:
|
||||
m[node] = &ast.InterfaceType{
|
||||
Interface: node.Interface,
|
||||
|
||||
Reference in New Issue
Block a user