Skip to content

Commit

Permalink
fix(bug): Single-file multi-module code generation function name is a…
Browse files Browse the repository at this point in the history
…ssigned multiple times
  • Loading branch information
lbbniu committed Aug 31, 2022
1 parent bf96a6f commit c219f5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions tars/tools/tars2go/gen_go.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ func (gen *GenGo) genAll() {
// already compiled
return
}
gFileMap[gen.path] = true

gen.p.rename()
gen.genInclude(gen.p.IncParse)
Expand All @@ -207,8 +208,6 @@ func (gen *GenGo) genAll() {
for _, v := range gen.p.Interface {
gen.genInterface(&v)
}

gFileMap[gen.path] = true
}

func (gen *GenGo) genErr(err string) {
Expand Down
2 changes: 1 addition & 1 deletion tars/tools/tars2go/version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main

// VERSION of the tars2go tools.
const VERSION = "1.1.8"
const VERSION = "1.1.9"

0 comments on commit c219f5b

Please sign in to comment.