• Alan Donovan's avatar
    exp/ssa: support variadic synthetic methods. · 18eb3cfd
    Alan Donovan authored
    We wrap the final '...' argument's type in types.Slice.
    Added tests.
    
    Also:
    - Function.writeSignature: suppress slice '[]' when printing
      variadic arg '...'.
    - Eliminate Package.ImportPath field; redundant
      w.r.t. Package.Types.Path.
    - Use "TODO: (opt|fix)" notation more widely.
    - Eliminate many redundant/stale TODOs.
    
    R=gri
    CC=golang-dev
    https://golang.org/cl/7378057
    18eb3cfd
promote.go 12.6 KB