Skip to content

Commit

Permalink
Add builder.go: BuildForDebugging
Browse files Browse the repository at this point in the history
  • Loading branch information
just-do-halee committed Nov 25, 2022
1 parent d3e938a commit a5de723
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,10 @@ func (b *builder) Build(opt any) error {
_, err := internal.Parse(opt, b.args, b.options)
return err
}

type Tree = *internal.Tree

func (b *builder) BuildForDebugging(opt any) (error, Tree) {
tree, err := internal.Parse(opt, b.args, b.options)
return err, tree
}

0 comments on commit a5de723

Please sign in to comment.