Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(67)

Side by Side Diff: src/pkg/go/printer/testdata/declarations.golden

Issue 3225042: code review 3225042: go/printer: preserve newlines in func parameter lists
Patch Set: code review 3225042: go/printer: preserve newlines in func parameter lists Created 14 years, 3 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pkg/go/printer/nodes.go ('k') | src/pkg/go/printer/testdata/declarations.input » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 package imports 5 package imports
6 6
7 import "io" 7 import "io"
8 8
9 import ( 9 import (
10 _ "io" 10 _ "io"
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 649
650 func _(b bool, x ...int) 650 func _(b bool, x ...int)
651 func _(b bool, x ...*int) 651 func _(b bool, x ...*int)
652 func _(b bool, x ...[]int) 652 func _(b bool, x ...[]int)
653 func _(b bool, x ...struct{}) 653 func _(b bool, x ...struct{})
654 func _(x ...interface{}) 654 func _(x ...interface{})
655 func _(x ...func()) 655 func _(x ...func())
656 func _(x ...func(...int)) 656 func _(x ...func(...int))
657 func _(x ...map[string]int) 657 func _(x ...map[string]int)
658 func _(x ...chan int) 658 func _(x ...chan int)
659
660
661 // these parameter lists must remain multi-line since they are multi-line in the source
662 func _(bool,
663 int) {
664 }
665 func _(x bool,
666 y int) {
667 }
668 func _(x,
669 y bool) {
670 }
671 func _(bool, // comment
672 int) {
673 }
674 func _(x bool, // comment
675 y int) {
676 }
677 func _(x, // comment
678 y bool) {
679 }
680 func _(bool, // comment
681 // comment
682 int) {
683 }
684 func _(x bool, // comment
685 // comment
686 y int) {
687 }
688 func _(x, // comment
689 // comment
690 y bool) {
691 }
692 func _(bool,
693 // comment
694 int) {
695 }
696 func _(x bool,
697 // comment
698 y int) {
699 }
700 func _(x,
701 // comment
702 y bool) {
703 }
704 func _(x, // comment
705 y, // comment
706 z bool) {
707 }
708 func _(x, // comment
709 y, // comment
710 z bool) {
711 }
712 func _(x int, // comment
713 y float, // comment
714 z bool) {
715 }
OLDNEW
« no previous file with comments | « src/pkg/go/printer/nodes.go ('k') | src/pkg/go/printer/testdata/declarations.input » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b