mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-20 04:19:04 +00:00
passes: small code cleanup
This commit is contained in:
@@ -114,7 +114,7 @@ func (p *Program) AnalyseInterfaceConversions() {
|
|||||||
name := MethodName(sel.Obj().(*types.Func))
|
name := MethodName(sel.Obj().(*types.Func))
|
||||||
t.Methods[name] = sel
|
t.Methods[name] = sel
|
||||||
}
|
}
|
||||||
p.typesWithMethods[instr.X.Type().String()] = t
|
p.typesWithMethods[name] = t
|
||||||
} else if _, ok := p.typesWithoutMethods[name]; !ok && len(methods) == 0 {
|
} else if _, ok := p.typesWithoutMethods[name]; !ok && len(methods) == 0 {
|
||||||
p.typesWithoutMethods[name] = len(p.typesWithoutMethods)
|
p.typesWithoutMethods[name] = len(p.typesWithoutMethods)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user