mirror of
https://github.com/adelphes/android-dev-ext.git
synced 2025-12-23 01:48:18 +00:00
fix resolving imported enclosed types
This commit is contained in:
@@ -311,10 +311,9 @@ function resolveTypeOrPackage(ident, type_variables, scope, imports, typemap) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!types[0]) {
|
if (!types[0]) {
|
||||||
// is it a top-level type from the imports
|
// is it a type from the imports
|
||||||
const top_level_type = '/' + ident;
|
|
||||||
for (let i of imports) {
|
for (let i of imports) {
|
||||||
const fqn = i.fullyQualifiedNames.find(fqn => fqn.endsWith(top_level_type));
|
const fqn = i.fullyQualifiedNames.find(fqn => fqn.endsWith(ident) && /[$/]/.test(fqn[fqn.length-ident.length-1]));
|
||||||
if (fqn) {
|
if (fqn) {
|
||||||
types.push(i.types.get(fqn));
|
types.push(i.types.get(fqn));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user