complain about missing default value of a function argument (PY-3253)

This commit is contained in:
Dmitry Jemerov
2011-04-02 20:01:51 +02:00
parent d9c43d19f4
commit c2fdba4021
4 changed files with 27 additions and 1 deletions
@@ -0,0 +1,2 @@
def fa(a=):
pass
@@ -0,0 +1,18 @@
PyFile:MissingDefaultValue.py
PyFunction('fa')
PsiElement(Py:DEF_KEYWORD)('def')
PsiWhiteSpace(' ')
PsiElement(Py:IDENTIFIER)('fa')
PyParameterList
PsiElement(Py:LPAR)('(')
PyNamedParameter('a')
PsiElement(Py:IDENTIFIER)('a')
PsiElement(Py:EQ)('=')
PsiErrorElement:expression expected
<empty list>
PsiElement(Py:RPAR)(')')
PsiElement(Py:COLON)(':')
PsiWhiteSpace('\n ')
PyStatementList
PyPassStatement
PsiElement(Py:PASS_KEYWORD)('pass')