Adjust stub-builder, decompiler and renderer to new PSI structure
of primary ctor
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@ import org.jetbrains.kotlin.psi.stubs.impl.KotlinFileStubImpl;
|
||||
import java.io.IOException;
|
||||
|
||||
public class JetFileElementType extends IStubFileElementType<KotlinFileStub> {
|
||||
public static final int STUB_VERSION = 40;
|
||||
public static final int STUB_VERSION = 41;
|
||||
|
||||
private static final String NAME = "kotlin.FILE";
|
||||
|
||||
|
||||
@@ -77,8 +77,8 @@ public abstract class AbstractDescriptorRendererTest : KotlinTestWithEnvironment
|
||||
is JetFunctionType -> return
|
||||
is JetNamedFunction ->
|
||||
addCorrespondingParameterDescriptor(getDescriptor(declaringElement, resolveSession) as FunctionDescriptor, parameter)
|
||||
is JetClass -> {
|
||||
val jetClass: JetClass = declaringElement
|
||||
is JetPrimaryConstructor -> {
|
||||
val jetClass: JetClass = declaringElement.getContainingClass()
|
||||
val classDescriptor = getDescriptor(jetClass, resolveSession) as ClassDescriptor
|
||||
addCorrespondingParameterDescriptor(classDescriptor.getUnsubstitutedPrimaryConstructor(), parameter)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user