Fixed generating method calls from same module when inlining.
This commit is contained in:
@@ -117,6 +117,8 @@ public class DescriptorUtils {
|
||||
return descriptor.getContainingDeclaration() instanceof PackageFragmentDescriptor;
|
||||
}
|
||||
|
||||
// WARNING! Don't use this method in JVM backend, use JvmCodegenUtil.isCallInsideSameModuleAsDeclared() instead.
|
||||
// The latter handles compilation against compiled part of our module correctly.
|
||||
public static boolean areInSameModule(@NotNull DeclarationDescriptor first, @NotNull DeclarationDescriptor second) {
|
||||
return getContainingModule(first).equals(getContainingModule(second));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user