mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
change PSI for nested comprehensions (PY-3030)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
gen_object = (xx for bar in lst1 for xx in bar)
|
||||
@@ -0,0 +1,32 @@
|
||||
PyFile:NestedGenerators.py
|
||||
PyAssignmentStatement
|
||||
PyTargetExpression: gen_object
|
||||
PsiElement(Py:IDENTIFIER)('gen_object')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(Py:EQ)('=')
|
||||
PsiWhiteSpace(' ')
|
||||
PyGeneratorExpression
|
||||
PsiElement(Py:LPAR)('(')
|
||||
PyReferenceExpression: xx
|
||||
PsiElement(Py:IDENTIFIER)('xx')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(Py:FOR_KEYWORD)('for')
|
||||
PsiWhiteSpace(' ')
|
||||
PyTargetExpression: bar
|
||||
PsiElement(Py:IDENTIFIER)('bar')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(Py:IN_KEYWORD)('in')
|
||||
PsiWhiteSpace(' ')
|
||||
PyReferenceExpression: lst1
|
||||
PsiElement(Py:IDENTIFIER)('lst1')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(Py:FOR_KEYWORD)('for')
|
||||
PsiWhiteSpace(' ')
|
||||
PyTargetExpression: xx
|
||||
PsiElement(Py:IDENTIFIER)('xx')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(Py:IN_KEYWORD)('in')
|
||||
PsiWhiteSpace(' ')
|
||||
PyReferenceExpression: bar
|
||||
PsiElement(Py:IDENTIFIER)('bar')
|
||||
PsiElement(Py:RPAR)(')')
|
||||
Reference in New Issue
Block a user