Skip to content

Commit

Permalink
change DebugString() for ASTPath and ASTStep
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Taylor <[email protected]>
  • Loading branch information
systay committed Jan 29, 2025
1 parent e9a3682 commit 586e68e
Show file tree
Hide file tree
Showing 5 changed files with 738 additions and 648 deletions.
2 changes: 1 addition & 1 deletion go/tools/asthelpergen/ast_path_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (p *pathGen) debugString() *jen.Statement {
stepName := printableTypeName(step.container) + step.name

// Generate the debug string using the helper function
debugStr := fmt.Sprintf("%s:%s(%s)", types.TypeString(step.container, noQualifier), step.name, types.TypeString(step.typ, noQualifier))
debugStr := fmt.Sprintf("(%s).%s", types.TypeString(step.container, noQualifier), step.name)

if !step.slice {
switchCases = append(switchCases, jen.Case(jen.Id(stepName)).Block(
Expand Down
58 changes: 29 additions & 29 deletions go/tools/asthelpergen/integration/ast_path.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 586e68e

Please sign in to comment.