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

Delta Between Two Patch Sets: src/pkg/go/printer/testdata/declarations.golden

Issue 3225042: code review 3225042: go/printer: preserve newlines in func parameter lists
Left Patch Set: Created 14 years, 3 months ago
Right 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:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/go/printer/nodes.go ('k') | src/pkg/go/printer/testdata/declarations.input » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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 659
gri 2010/12/01 22:41:34 please two newlines between groups of tests
jmg 2010/12/02 17:35:34 Done.
660
660 // these parameter lists must remain multi-line since they are multi-line in the source 661 // these parameter lists must remain multi-line since they are multi-line in the source
661 func _(bool, 662 func _(bool,
662 int) { 663 int) {
gri 2010/12/01 22:41:34 I am wondering if there should be indentation here
jmg 2010/12/02 17:35:34 This matches the existing behavior for func param
663 } 664 }
664 func _(x bool, 665 func _(x bool,
665 y int) { 666 y int) {
666 } 667 }
667 func _(x, 668 func _(x,
668 y bool) { 669 y bool) {
669 } 670 }
gri 2010/12/01 22:41:34 Please add more examples that test the behavior if
jmg 2010/12/02 17:35:34 I've added a number of additional test cases with
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 }
LEFTRIGHT

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