MCPcopy Create free account
hub / github.com/golang/mobile / unknownImplicitClasses

Method unknownImplicitClasses

internal/importers/java/java.go:689–709  ·  view source on GitHub ↗
(cls *Class, set map[string]struct{})

Source from the content-addressed store, hash-verified

687}
688
689func (j *Importer) unknownImplicitClasses(cls *Class, set map[string]struct{}) {
690 for _, fsets := range [][]*FuncSet{cls.Funcs, cls.Methods} {
691 for _, fs := range fsets {
692 for _, f := range fs.Funcs {
693 names := j.implicitFuncTypes(f)
694 for _, name := range names {
695 if _, exists := j.clsMap[name]; !exists {
696 set[name] = struct{}{}
697 }
698 }
699 }
700 }
701 }
702 for _, n := range cls.Supers {
703 if s, exists := j.clsMap[n]; exists {
704 j.unknownImplicitClasses(s, set)
705 } else {
706 set[n] = struct{}{}
707 }
708 }
709}
710
711func (j *Importer) implicitFuncClasses(funcs []*FuncSet, impl []string) []string {
712 var l []string

Callers 1

Calls 1

implicitFuncTypesMethod · 0.95

Tested by

no test coverage detected