mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
change parsing of generator in argument list so that parentheses are part of argument list, not generator (PY-3172)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
"".join(' ' for ca in comment)
|
||||
@@ -0,0 +1,24 @@
|
||||
PyFile:GeneratorInArgumentList.py
|
||||
PyExpressionStatement
|
||||
PyCallExpression: "".join
|
||||
PyReferenceExpression: join
|
||||
PyStringLiteralExpression:
|
||||
PsiElement(Py:STRING_LITERAL)('""')
|
||||
PsiElement(Py:DOT)('.')
|
||||
PsiElement(Py:IDENTIFIER)('join')
|
||||
PyArgumentList
|
||||
PsiElement(Py:LPAR)('(')
|
||||
PyGeneratorExpression
|
||||
PyStringLiteralExpression:
|
||||
PsiElement(Py:STRING_LITERAL)('' '')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(Py:FOR_KEYWORD)('for')
|
||||
PsiWhiteSpace(' ')
|
||||
PyTargetExpression: ca
|
||||
PsiElement(Py:IDENTIFIER)('ca')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(Py:IN_KEYWORD)('in')
|
||||
PsiWhiteSpace(' ')
|
||||
PyReferenceExpression: comment
|
||||
PsiElement(Py:IDENTIFIER)('comment')
|
||||
PsiElement(Py:RPAR)(')')
|
||||
Reference in New Issue
Block a user