mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 08:55:11 +01:00
Increment coroID per-struct, not per-package
This commit is contained in:
1 parent
4ab2de9b95
commit
b37e55f4a5
2 files changed
+6
-3
No files matched your search
@@ -499,7 +499,7 @@ type gen struct {
|
||||
currFunk funk
|
||||
funks map[t.QQID]funk
|
||||
|
||||
numPublicCoroutines uint32
|
||||
numPublicCoroutines map[t.QID]uint32
|
||||
}
|
||||
|
||||
func (g *gen) generate() ([]byte, error) {
|
||||
@@ -544,6 +544,7 @@ func (g *gen) generate() ([]byte, error) {
|
||||
}
|
||||
g.structMap = map[t.QID]*a.Struct{}
|
||||
g.privateDataFields = map[t.QQID]struct{}{}
|
||||
g.numPublicCoroutines = map[t.QID]uint32{}
|
||||
for _, n := range g.structList {
|
||||
qid := n.QID()
|
||||
g.structMap[qid] = n
|
||||
|
||||
Reference in new issue
Block a user