mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Support 'yield from' syntax (PY-6702)
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
def f(g):
|
||||
yield from g()
|
||||
@@ -0,0 +1,25 @@
|
||||
PyFile:YieldFrom.py
|
||||
PyFunction('f')
|
||||
PsiElement(Py:DEF_KEYWORD)('def')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(Py:IDENTIFIER)('f')
|
||||
PyParameterList
|
||||
PsiElement(Py:LPAR)('(')
|
||||
PyNamedParameter('g')
|
||||
PsiElement(Py:IDENTIFIER)('g')
|
||||
PsiElement(Py:RPAR)(')')
|
||||
PsiElement(Py:COLON)(':')
|
||||
PsiWhiteSpace('\n ')
|
||||
PyStatementList
|
||||
PyExpressionStatement
|
||||
PyYieldExpression
|
||||
PsiElement(Py:YIELD_KEYWORD)('yield')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(Py:FROM_KEYWORD)('from')
|
||||
PsiWhiteSpace(' ')
|
||||
PyCallExpression: g
|
||||
PyReferenceExpression: g
|
||||
PsiElement(Py:IDENTIFIER)('g')
|
||||
PyArgumentList
|
||||
PsiElement(Py:LPAR)('(')
|
||||
PsiElement(Py:RPAR)(')')
|
||||
Reference in New Issue
Block a user