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:
Enrique Fueyo
2022-06-19 17:37:05 -07:00
committed by GitHub
parent 79660af943
commit 4aee85e4ce
3 changed files with 25 additions and 19 deletions

View File

@@ -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,