Revert "Update dependencies to support Generics (#360)" (#365)

This reverts commit 4aee85e4ce.
This commit is contained in:
Stanley Chen
2022-06-19 19:14:24 -07:00
committed by GitHub
parent 4aee85e4ce
commit 0675cdc919
3 changed files with 19 additions and 25 deletions

View File

@@ -263,13 +263,6 @@ 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,