mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile/internal/gc: make Nod private
Follow up to CL 29134. Generated with gofmt -r 'Nod -> nod', plus three manual adjustments to the comments in syntax/parser.go Change-Id: I02920f7ab10c70b6e850457b42d5fe35f1f3821a Reviewed-on: https://go-review.googlesource.com/29136 Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
bb12894d2b
commit
073d248bf5
29 changed files with 692 additions and 692 deletions
|
|
@ -588,7 +588,7 @@ func Isconst(n *Node, ct Ctype) bool {
|
|||
func saveorig(n *Node) *Node {
|
||||
if n == n.Orig {
|
||||
// duplicate node for n->orig.
|
||||
n1 := Nod(OLITERAL, nil, nil)
|
||||
n1 := nod(OLITERAL, nil, nil)
|
||||
|
||||
n.Orig = n1
|
||||
*n1 = *n
|
||||
|
|
@ -1227,7 +1227,7 @@ illegal:
|
|||
}
|
||||
|
||||
func nodlit(v Val) *Node {
|
||||
n := Nod(OLITERAL, nil, nil)
|
||||
n := nod(OLITERAL, nil, nil)
|
||||
n.SetVal(v)
|
||||
switch v.Ctype() {
|
||||
default:
|
||||
|
|
@ -1254,7 +1254,7 @@ func nodcplxlit(r Val, i Val) *Node {
|
|||
i = toflt(i)
|
||||
|
||||
c := new(Mpcplx)
|
||||
n := Nod(OLITERAL, nil, nil)
|
||||
n := nod(OLITERAL, nil, nil)
|
||||
n.Type = Types[TIDEAL]
|
||||
n.SetVal(Val{c})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue