Files
openide/python/testData/psi/ClassDecorators.txt
Lada Gagina 2e617b803c IDEA-CR-63687: PY-41305 Add PEP 614 support
Allows to use any expression as a decorator

GitOrigin-RevId: e92af1ebd2c4d7024971fd4542bfe52640faaa26
2020-06-17 00:30:49 +03:00

23 lines
654 B
Plaintext

PyFile:ClassDecorators.py
PyClass: A
PyDecoratorList
PyDecorator: @foo
PsiElement(Py:AT)('@')
PyReferenceExpression: foo
PsiElement(Py:IDENTIFIER)('foo')
PsiWhiteSpace('\n')
PyDecorator: @bar
PsiElement(Py:AT)('@')
PyReferenceExpression: bar
PsiElement(Py:IDENTIFIER)('bar')
PsiWhiteSpace('\n')
PsiElement(Py:CLASS_KEYWORD)('class')
PsiWhiteSpace(' ')
PsiElement(Py:IDENTIFIER)('A')
PyArgumentList
<empty list>
PsiElement(Py:COLON)(':')
PsiWhiteSpace('\n ')
PyStatementList
PyPassStatement
PsiElement(Py:PASS_KEYWORD)('pass')