diff options
Diffstat (limited to 'python/src/com/jetbrains/python/psi/impl/PySingleStarParameterImpl.java')
-rw-r--r-- | python/src/com/jetbrains/python/psi/impl/PySingleStarParameterImpl.java | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/python/src/com/jetbrains/python/psi/impl/PySingleStarParameterImpl.java b/python/src/com/jetbrains/python/psi/impl/PySingleStarParameterImpl.java index 70a46fbe39f9..44a01759f403 100644 --- a/python/src/com/jetbrains/python/psi/impl/PySingleStarParameterImpl.java +++ b/python/src/com/jetbrains/python/psi/impl/PySingleStarParameterImpl.java @@ -16,21 +16,18 @@ package com.jetbrains.python.psi.impl; import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.util.IncorrectOperationException; +import com.intellij.navigation.ItemPresentation; import com.jetbrains.python.PyElementTypes; import com.jetbrains.python.psi.PyExpression; import com.jetbrains.python.psi.PyNamedParameter; import com.jetbrains.python.psi.PySingleStarParameter; import com.jetbrains.python.psi.PyTupleParameter; import com.jetbrains.python.psi.stubs.PySingleStarParameterStub; -import org.jetbrains.annotations.NonNls; -import org.jetbrains.annotations.NotNull; /** * @author yole */ -public class PySingleStarParameterImpl extends PyPresentableElementImpl<PySingleStarParameterStub> implements PySingleStarParameter { +public class PySingleStarParameterImpl extends PyBaseElementImpl<PySingleStarParameterStub> implements PySingleStarParameter { public PySingleStarParameterImpl(ASTNode astNode) { super(astNode); } @@ -39,22 +36,22 @@ public class PySingleStarParameterImpl extends PyPresentableElementImpl<PySingle super(stub, PyElementTypes.SINGLE_STAR_PARAMETER); } - public PsiElement setName(@NonNls @NotNull String name) throws IncorrectOperationException { - throw new UnsupportedOperationException(); - } - + @Override public PyNamedParameter getAsNamed() { return null; } + @Override public PyTupleParameter getAsTuple() { return null; } + @Override public PyExpression getDefaultValue() { return null; } + @Override public boolean hasDefaultValue() { return false; } @@ -63,4 +60,9 @@ public class PySingleStarParameterImpl extends PyPresentableElementImpl<PySingle public boolean isSelf() { return false; } + + @Override + public ItemPresentation getPresentation() { + return new PyElementPresentation(this); + } } |