-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix all bugs for the grouping of decl
- Loading branch information
Showing
7 changed files
with
134 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1 @@ | ||
package testpkg | ||
|
||
func fn() { | ||
var a = 1 // want "declarations should never be cuddled" | ||
var baba = 2 // what about | ||
var xx = 2 // Some comments? | ||
var yy = 2 | ||
|
||
var c = 1 // want "declarations should never be cuddled" | ||
var ( | ||
d = 1 // like this | ||
extendedAlign = 33 | ||
) | ||
var ( | ||
x = 1 | ||
y = 2 | ||
) | ||
var afsa = 1 | ||
|
||
if true { | ||
// | ||
} | ||
var x = 1 | ||
var z = 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1 @@ | ||
package testpkg | ||
|
||
func fn() { | ||
var ( | ||
a = 1 // want "declarations should never be cuddled" | ||
baba = 2 // what about | ||
xx = 2 // Some comments? | ||
yy = 2 | ||
) | ||
|
||
var ( | ||
c = 1 // want "declarations should never be cuddled" | ||
|
||
d = 1 // like this | ||
extendedAlign = 33 | ||
|
||
x = 1 | ||
y = 2 | ||
|
||
afsa = 1 | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters