fix StaticContext: use module name from module descriptor
This commit is contained in:
committed by
Alexey Tsvetkov
parent
10e51db55b
commit
6e3d751ee9
@@ -496,7 +496,9 @@ public final class StaticContext {
|
||||
}
|
||||
|
||||
if (element == null) {
|
||||
return null;
|
||||
ModuleDescriptor moduleDescriptor = DescriptorUtils.getContainingModule(descriptor);
|
||||
String moduleName = moduleDescriptor.getName().asString();
|
||||
return moduleName.substring(1, moduleName.length()-1);
|
||||
}
|
||||
return element.getContainingFile().getUserData(LibrarySourcesConfig.EXTERNAL_MODULE_NAME);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user