1
0
mirror of https://github.com/golang/go synced 2024-11-25 16:47:56 -07:00

cmd/compile: regenerate node_gen.go

Looks like CL 413361 which added CaseClause.RTypes missed the need
to regenerate this file.

Also CL 413357 added DynamicTypeAssertExpr.SrcRType, same issue.

Change-Id: I45e4d0685cc2f9bdcef1fad2cfc92e7005ef363e
Reviewed-on: https://go-review.googlesource.com/c/go/+/426675
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
Keith Randall 2022-08-30 13:08:45 -07:00 committed by Keith Randall
parent 8a3d167f5b
commit bd56cb90a7

View File

@ -259,6 +259,7 @@ func (n *CaseClause) copy() Node {
c := *n
c.init = copyNodes(c.init)
c.List = copyNodes(c.List)
c.RTypes = copyNodes(c.RTypes)
c.Body = copyNodes(c.Body)
return &c
}
@ -272,6 +273,9 @@ func (n *CaseClause) doChildren(do func(Node) bool) bool {
if doNodes(n.List, do) {
return true
}
if doNodes(n.RTypes, do) {
return true
}
if doNodes(n.Body, do) {
return true
}
@ -283,6 +287,7 @@ func (n *CaseClause) editChildren(edit func(Node) Node) {
n.Var = edit(n.Var).(*Name)
}
editNodes(n.List, edit)
editNodes(n.RTypes, edit)
editNodes(n.Body, edit)
}
@ -458,6 +463,9 @@ func (n *DynamicTypeAssertExpr) doChildren(do func(Node) bool) bool {
if n.X != nil && do(n.X) {
return true
}
if n.SrcRType != nil && do(n.SrcRType) {
return true
}
if n.RType != nil && do(n.RType) {
return true
}
@ -471,6 +479,9 @@ func (n *DynamicTypeAssertExpr) editChildren(edit func(Node) Node) {
if n.X != nil {
n.X = edit(n.X).(Node)
}
if n.SrcRType != nil {
n.SrcRType = edit(n.SrcRType).(Node)
}
if n.RType != nil {
n.RType = edit(n.RType).(Node)
}