• Robert Griesemer's avatar
    go/printer, gofmt: fine tuning of line spacing · 541b67d0
    Robert Griesemer authored
    - no empty lines inside empty structs and interfaces
    - top-level declarations are separated by a blank line if
      a) they are of different kind (e.g. const vs type); or
      b) there are documentation comments associated with a
         declaration (this is new)
    - applied gofmt -w misc src
    
    The actual changes are in go/printer/nodes.go:397-400 (empty structs/interfaces),
    and go/printer/printer.go:307-309 (extra line break). The remaining
    changes are cleanups w/o changing the existing functionality.
    
    Fixes issue  2570.
    
    R=rsc
    CC=golang-dev
    https://golang.org/cl/5493057
    541b67d0
Name
Last commit
Last update
..
reflect.asn1.go.in Loading commit data...
reflect.asn1.go.out Loading commit data...
reflect.datafmt.go.in Loading commit data...
reflect.datafmt.go.out Loading commit data...
reflect.decode.go.in Loading commit data...
reflect.decode.go.out Loading commit data...
reflect.decoder.go.in Loading commit data...
reflect.decoder.go.out Loading commit data...
reflect.dnsmsg.go.in Loading commit data...
reflect.dnsmsg.go.out Loading commit data...
reflect.encode.go.in Loading commit data...
reflect.encode.go.out Loading commit data...
reflect.encoder.go.in Loading commit data...
reflect.encoder.go.out Loading commit data...
reflect.export.go.in Loading commit data...
reflect.export.go.out Loading commit data...
reflect.print.go.in Loading commit data...
reflect.print.go.out Loading commit data...
reflect.quick.go.in Loading commit data...
reflect.quick.go.out Loading commit data...
reflect.read.go.in Loading commit data...
reflect.read.go.out Loading commit data...
reflect.scan.go.in Loading commit data...
reflect.scan.go.out Loading commit data...
reflect.script.go.in Loading commit data...
reflect.script.go.out Loading commit data...
reflect.template.go.in Loading commit data...
reflect.template.go.out Loading commit data...
reflect.type.go.in Loading commit data...
reflect.type.go.out Loading commit data...