Add exported-to-kati namespaces to root namespace
This lets us use boot jar modules that are hidden behind soong_namespace. Change-Id: If0068387efdeca5458b5b97ce6b993b10a268bd2
This commit is contained in:
parent
d0ee341157
commit
d00a3c6c93
1 changed files with 3 additions and 0 deletions
|
@ -156,6 +156,9 @@ func (r *NameResolver) addNamespace(namespace *Namespace) (err error) {
|
|||
return fmt.Errorf("a namespace must be the first module in the file")
|
||||
}
|
||||
}
|
||||
if (namespace.exportToKati) {
|
||||
r.rootNamespace.visibleNamespaces = append(r.rootNamespace.visibleNamespaces, namespace)
|
||||
}
|
||||
r.sortedNamespaces.add(namespace)
|
||||
|
||||
r.namespacesByDir.Store(namespace.Path, namespace)
|
||||
|
|
Loading…
Reference in a new issue