Skip to content
Snippets Groups Projects
Commit a68a7484 authored by Manos Koukoutos's avatar Manos Koukoutos
Browse files

Fix imported defs by package

parent 8270cd80
No related branches found
No related tags found
No related merge requests found
......@@ -111,8 +111,16 @@ object Definitions {
def importedDefs(implicit pgm: Program) = this match {
case PackageImport(pack) =>
// Ignore standalone modules, assume there are extra imports for them
DefOps.unitsInPackage(pgm, pack)
for {
u <- DefOps.unitsInPackage(pgm, pack)
d <- u.subDefinitions
ret <- d match {
case m: ModuleDef if m.isPackageObject =>
m.subDefinitions
case other =>
Seq(other)
}
} yield ret
case SingleImport(imported) =>
List(imported)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment