mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 04:51:24 +07:00
Allows to use any expression as a decorator GitOrigin-RevId: e92af1ebd2c4d7024971fd4542bfe52640faaa26
21 lines
676 B
Plaintext
21 lines
676 B
Plaintext
PyFile:CommentAfterDecorator.py
|
|
PyFunction('f')
|
|
PyDecoratorList
|
|
PyDecorator: @uncallable_deco
|
|
PsiElement(Py:AT)('@')
|
|
PyReferenceExpression: uncallable_deco
|
|
PsiElement(Py:IDENTIFIER)('uncallable_deco')
|
|
PsiWhiteSpace(' ')
|
|
PsiComment(Py:END_OF_LINE_COMMENT)('# some comment')
|
|
PsiWhiteSpace('\n')
|
|
PsiElement(Py:DEF_KEYWORD)('def')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(Py:IDENTIFIER)('f')
|
|
PyParameterList
|
|
PsiElement(Py:LPAR)('(')
|
|
PsiElement(Py:RPAR)(')')
|
|
PsiElement(Py:COLON)(':')
|
|
PsiWhiteSpace('\n ')
|
|
PyStatementList
|
|
PyPassStatement
|
|
PsiElement(Py:PASS_KEYWORD)('pass') |