JetTypeParameterListOwner: Add getTypeParameterList() and getTypeConstraintList() methods
This commit is contained in:
@@ -66,6 +66,18 @@ public class JetMultiDeclarationEntry extends JetNamedDeclarationNotStubbed impl
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
@Override
|
||||||
|
public JetTypeParameterList getTypeParameterList() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
@Override
|
||||||
|
public JetTypeConstraintList getTypeConstraintList() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
@Override
|
@Override
|
||||||
public List<JetTypeConstraint> getTypeConstraints() {
|
public List<JetTypeConstraint> getTypeConstraints() {
|
||||||
|
|||||||
@@ -145,6 +145,18 @@ public class JetParameter extends JetNamedDeclarationStub<KotlinParameterStub> i
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
@Override
|
||||||
|
public JetTypeParameterList getTypeParameterList() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
@Override
|
||||||
|
public JetTypeConstraintList getTypeConstraintList() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
@Override
|
@Override
|
||||||
public List<JetTypeConstraint> getTypeConstraints() {
|
public List<JetTypeConstraint> getTypeConstraints() {
|
||||||
|
|||||||
@@ -17,10 +17,17 @@
|
|||||||
package org.jetbrains.jet.lang.psi;
|
package org.jetbrains.jet.lang.psi;
|
||||||
|
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public interface JetTypeParameterListOwner extends JetNamedDeclaration {
|
public interface JetTypeParameterListOwner extends JetNamedDeclaration {
|
||||||
|
@Nullable
|
||||||
|
JetTypeParameterList getTypeParameterList();
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
JetTypeConstraintList getTypeConstraintList();
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
List<JetTypeConstraint> getTypeConstraints();
|
List<JetTypeConstraint> getTypeConstraints();
|
||||||
|
|
||||||
|
|||||||
+4
-2
@@ -31,13 +31,15 @@ abstract class JetTypeParameterListOwnerNotStubbed extends JetNamedDeclarationNo
|
|||||||
super(node);
|
super(node);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
@Nullable
|
@Nullable
|
||||||
JetTypeParameterList getTypeParameterList() {
|
public JetTypeParameterList getTypeParameterList() {
|
||||||
return (JetTypeParameterList) findChildByType(JetNodeTypes.TYPE_PARAMETER_LIST);
|
return (JetTypeParameterList) findChildByType(JetNodeTypes.TYPE_PARAMETER_LIST);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
@Nullable
|
@Nullable
|
||||||
JetTypeConstraintList getTypeConstraintList() {
|
public JetTypeConstraintList getTypeConstraintList() {
|
||||||
return (JetTypeConstraintList) findChildByType(JetNodeTypes.TYPE_CONSTRAINT_LIST);
|
return (JetTypeConstraintList) findChildByType(JetNodeTypes.TYPE_CONSTRAINT_LIST);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,11 +35,13 @@ abstract class JetTypeParameterListOwnerStub<T extends KotlinStubWithFqName> ext
|
|||||||
super(node);
|
super(node);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
@Nullable
|
@Nullable
|
||||||
public JetTypeParameterList getTypeParameterList() {
|
public JetTypeParameterList getTypeParameterList() {
|
||||||
return getStubOrPsiChild(JetStubElementTypes.TYPE_PARAMETER_LIST);
|
return getStubOrPsiChild(JetStubElementTypes.TYPE_PARAMETER_LIST);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
@Nullable
|
@Nullable
|
||||||
public JetTypeConstraintList getTypeConstraintList() {
|
public JetTypeConstraintList getTypeConstraintList() {
|
||||||
return getStubOrPsiChild(JetStubElementTypes.TYPE_CONSTRAINT_LIST);
|
return getStubOrPsiChild(JetStubElementTypes.TYPE_CONSTRAINT_LIST);
|
||||||
|
|||||||
Reference in New Issue
Block a user