Fixed parsing error in StatementParsing.parseSimpleStatement (EA-30244)

This commit is contained in:
Andrey Vlasovskikh
2012-09-03 19:39:05 +04:00
parent 6f0f860c11
commit 1d3a7823d3
4 changed files with 34 additions and 7 deletions
+1
View File
@@ -0,0 +1 @@
bb = yield dd = cc
+19
View File
@@ -0,0 +1,19 @@
PyFile:EqYieldEq.py
PyAssignmentStatement
PyTargetExpression: bb
PsiElement(Py:IDENTIFIER)('bb')
PsiWhiteSpace(' ')
PsiElement(Py:EQ)('=')
PsiWhiteSpace(' ')
PyYieldExpression
PsiElement(Py:YIELD_KEYWORD)('yield')
PsiWhiteSpace(' ')
PyReferenceExpression: dd
PsiElement(Py:IDENTIFIER)('dd')
PsiErrorElement:Cannot assign to 'yield' expression
<empty list>
PsiWhiteSpace(' ')
PsiElement(Py:EQ)('=')
PsiWhiteSpace(' ')
PyReferenceExpression: cc
PsiElement(Py:IDENTIFIER)('cc')