]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile/internal/gc: gofmt
authorAustin Clements <austin@google.com>
Fri, 27 May 2016 18:24:26 +0000 (14:24 -0400)
committerDavid Chase <drchase@google.com>
Fri, 27 May 2016 19:08:39 +0000 (19:08 +0000)
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>

src/cmd/compile/internal/gc/closure.go
src/cmd/compile/internal/gc/dcl.go
src/cmd/compile/internal/gc/syntax.go

index 6d84aed7b108f0456013d4cdb7d1d678f4c982b8..ecdf19a2c4293a4997c09ef8b20e9c59483ee160 100644 (file)
@@ -69,7 +69,7 @@ func closurebody(body []*Node) *Node {
                // Unlink from v1; see comment in syntax.go type Param for these fields.
                v1 := v.Name.Defn
                v1.Name.Param.Innermost = v.Name.Param.Outer
-               
+
                // If the closure usage of v is not dense,
                // we need to make it dense; now that we're out
                // of the function in which v appeared,
index 9e7efdb3fc7a90c1fb455ef7f56a2937711ba1b4..a4b98ec7c5219abd31586f0ed945c6059b260e90 100644 (file)
@@ -403,7 +403,7 @@ func oldname(s *Sym) *Node {
                        c.Addable = false
                        c.Ullman = 2
                        c.Name.Funcdepth = Funcdepth
-                       
+
                        // Link into list of active closure variables.
                        // Popped from list in func closurebody.
                        c.Name.Param.Outer = n.Name.Param.Innermost
@@ -508,7 +508,7 @@ func ifacedcl(n *Node) {
        n.Func = new(Func)
        n.Func.FCurfn = Curfn
        dclcontext = PPARAM
-       
+
        funcstart(n)
        funcargs(n.Right)
 
@@ -670,8 +670,7 @@ func funcargs2(t *Type) {
 }
 
 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.
 // called before funcargs; undone at end of funcbody.
index d4bfc84d67a7a4f91c11aee33f43ffd109589b6d..e673db9004804c5502c81c42f30c6ac1494487bd 100644 (file)
@@ -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).
 type Name struct {
-       Pack      *Node // real package for import . names
-       Pkg       *Pkg  // pkg for OPACK nodes
-       Heapaddr  *Node // temp holding heap address of param (could move to Param?)
-       Inlvar    *Node // ONAME substitute while inlining (could move to Param?)
-       Defn      *Node // initializing assignment
-       Curfn     *Node // function for local variables
+       Pack      *Node  // real package for import . names
+       Pkg       *Pkg   // pkg for OPACK nodes
+       Heapaddr  *Node  // temp holding heap address of param (could move to Param?)
+       Inlvar    *Node  // ONAME substitute while inlining (could move to Param?)
+       Defn      *Node  // initializing assignment
+       Curfn     *Node  // function for local variables
        Param     *Param // additional fields for ONAME, ODCLFIELD
-       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.
-       Iota      int32 // value if this name is iota
+       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.
+       Iota      int32  // value if this name is iota
        Funcdepth int32
        Method    bool // OCALLMETH name
        Readonly  bool
@@ -254,7 +254,7 @@ type Param struct {
        // 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.
        Innermost *Node
-       Outer *Node
+       Outer     *Node
 }
 
 // Func holds Node fields used only with function-like nodes.