mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile/internal/gc: gofmt
Commit 36a80c5 introduced formatting errors.
Change-Id: I6d5b231200cd7abcd5b94c1a3f4e99f10ee11c4f
Reviewed-on: https://go-review.googlesource.com/23513
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: David Chase <drchase@google.com>
This commit is contained in:
parent
53af0d3476
commit
e149624ebb
3 changed files with 14 additions and 15 deletions
|
|
@ -670,8 +670,7 @@ func funcargs2(t *Type) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var funcstack []*Node // stack of previous values of Curfn
|
var funcstack []*Node // stack of previous values of Curfn
|
||||||
var Funcdepth int32 // len(funcstack) during parsing, but then forced to be the same later during compilation
|
var Funcdepth int32 // len(funcstack) during parsing, but then forced to be the same later during compilation
|
||||||
|
|
||||||
|
|
||||||
// start the function.
|
// start the function.
|
||||||
// called before funcargs; undone at end of funcbody.
|
// called before funcargs; undone at end of funcbody.
|
||||||
|
|
|
||||||
|
|
@ -156,16 +156,16 @@ func (n *Node) SetOpt(x interface{}) {
|
||||||
|
|
||||||
// Name holds Node fields used only by named nodes (ONAME, OPACK, OLABEL, ODCLFIELD, some OLITERAL).
|
// Name holds Node fields used only by named nodes (ONAME, OPACK, OLABEL, ODCLFIELD, some OLITERAL).
|
||||||
type Name struct {
|
type Name struct {
|
||||||
Pack *Node // real package for import . names
|
Pack *Node // real package for import . names
|
||||||
Pkg *Pkg // pkg for OPACK nodes
|
Pkg *Pkg // pkg for OPACK nodes
|
||||||
Heapaddr *Node // temp holding heap address of param (could move to Param?)
|
Heapaddr *Node // temp holding heap address of param (could move to Param?)
|
||||||
Inlvar *Node // ONAME substitute while inlining (could move to Param?)
|
Inlvar *Node // ONAME substitute while inlining (could move to Param?)
|
||||||
Defn *Node // initializing assignment
|
Defn *Node // initializing assignment
|
||||||
Curfn *Node // function for local variables
|
Curfn *Node // function for local variables
|
||||||
Param *Param // additional fields for ONAME, ODCLFIELD
|
Param *Param // additional fields for ONAME, ODCLFIELD
|
||||||
Decldepth int32 // declaration loop depth, increased for every loop or label
|
Decldepth int32 // declaration loop depth, increased for every loop or label
|
||||||
Vargen int32 // unique name for ONAME within a function. Function outputs are numbered starting at one.
|
Vargen int32 // unique name for ONAME within a function. Function outputs are numbered starting at one.
|
||||||
Iota int32 // value if this name is iota
|
Iota int32 // value if this name is iota
|
||||||
Funcdepth int32
|
Funcdepth int32
|
||||||
Method bool // OCALLMETH name
|
Method bool // OCALLMETH name
|
||||||
Readonly bool
|
Readonly bool
|
||||||
|
|
@ -254,7 +254,7 @@ type Param struct {
|
||||||
// Because of the sharding of pieces of the node, x.Defn means x.Name.Defn
|
// Because of the sharding of pieces of the node, x.Defn means x.Name.Defn
|
||||||
// and x.Innermost/Outer means x.Name.Param.Innermost/Outer.
|
// and x.Innermost/Outer means x.Name.Param.Innermost/Outer.
|
||||||
Innermost *Node
|
Innermost *Node
|
||||||
Outer *Node
|
Outer *Node
|
||||||
}
|
}
|
||||||
|
|
||||||
// Func holds Node fields used only with function-like nodes.
|
// Func holds Node fields used only with function-like nodes.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue