Skip to content

Commit 9070230

Browse files
committed
fix codegen
Signed-off-by: Vicent Marti <vmg@strn.cat>
1 parent 474d9fb commit 9070230

File tree

2 files changed

+53
-55
lines changed

2 files changed

+53
-55
lines changed

go/tools/asthelpergen/integration/ast_path.go

Lines changed: 50 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/tools/asthelpergen/paths_gen.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ func (p *pathGen) ptrToStructMethod(t types.Type, strct *types.Struct, spi gener
9393

9494
func (p *pathGen) addStep(
9595
container types.Type, // the name of the container type
96-
typ types.Type, // the type of the field
97-
name string, // the name of the field
98-
slice bool, // whether the field is a slice
96+
typ types.Type, // the type of the field
97+
name string, // the name of the field
98+
slice bool, // whether the field is a slice
9999
) {
100100
s := step{
101101
container: container,
@@ -262,6 +262,5 @@ func (p *pathGen) generateWalkCases(spi generatorSPI) []jen.Code {
262262
cases = append(cases, jen.Default().Block(
263263
jen.Return(jen.Nil()),
264264
))
265-
266265
return cases
267266
}

0 commit comments

Comments
 (0)