mirror of
https://github.com/adelphes/android-dev-ext.git
synced 2025-12-23 01:48:18 +00:00
import types from same package
This commit is contained in:
@@ -228,6 +228,10 @@ function parseUnit(tokens, unit, typemap) {
|
|||||||
if (!package_name) {
|
if (!package_name) {
|
||||||
unit.package_ = pkg;
|
unit.package_ = pkg;
|
||||||
package_name = pkg.name;
|
package_name = pkg.name;
|
||||||
|
const imprt = resolveImports(typemap, [], [], pkg.name, []);
|
||||||
|
if (imprt.resolved.length) {
|
||||||
|
resolved_imports.unshift(...imprt.resolved);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
case 'import':
|
case 'import':
|
||||||
@@ -237,7 +241,7 @@ function parseUnit(tokens, unit, typemap) {
|
|||||||
const imprt = importDeclaration(tokens, typemap);
|
const imprt = importDeclaration(tokens, typemap);
|
||||||
unit.imports.push(imprt);
|
unit.imports.push(imprt);
|
||||||
if (imprt.resolved) {
|
if (imprt.resolved) {
|
||||||
resolved_imports.push(imprt.resolved);
|
resolved_imports.unshift(imprt.resolved);
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user