call in qualifier of assignment LHS should be parsed as reference expression, not target expression (PY-5062)

This commit is contained in:
Dmitry Jemerov
2011-11-21 18:41:39 +01:00
parent b670fc8c7f
commit 43df68cef6
8 changed files with 61 additions and 2 deletions
+1
View File
@@ -0,0 +1 @@
etree.SubElement(dictionary, u'Name').text = dict_name
+25
View File
@@ -0,0 +1,25 @@
PyFile:CallInAssignment.py
PyAssignmentStatement
PyTargetExpression: text
PyCallExpression: etree.SubElement
PyReferenceExpression: SubElement
PyReferenceExpression: etree
PsiElement(Py:IDENTIFIER)('etree')
PsiElement(Py:DOT)('.')
PsiElement(Py:IDENTIFIER)('SubElement')
PyArgumentList
PsiElement(Py:LPAR)('(')
PyReferenceExpression: dictionary
PsiElement(Py:IDENTIFIER)('dictionary')
PsiElement(Py:COMMA)(',')
PsiWhiteSpace(' ')
PyStringLiteralExpression: Name
PsiElement(Py:SINGLE_QUOTED_STRING)('u'Name'')
PsiElement(Py:RPAR)(')')
PsiElement(Py:DOT)('.')
PsiElement(Py:IDENTIFIER)('text')
PsiWhiteSpace(' ')
PsiElement(Py:EQ)('=')
PsiWhiteSpace(' ')
PyReferenceExpression: dict_name
PsiElement(Py:IDENTIFIER)('dict_name')