mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 09:12:22 +07:00
Allows to use any expression as a decorator GitOrigin-RevId: e92af1ebd2c4d7024971fd4542bfe52640faaa26
42 lines
1.3 KiB
Plaintext
42 lines
1.3 KiB
Plaintext
PyFile:BadDecoratorNotMethod.py
|
|
PyClass: Foo
|
|
PsiElement(Py:CLASS_KEYWORD)('class')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(Py:IDENTIFIER)('Foo')
|
|
PyArgumentList
|
|
PsiElement(Py:LPAR)('(')
|
|
PyReferenceExpression: object
|
|
PsiElement(Py:IDENTIFIER)('object')
|
|
PsiElement(Py:RPAR)(')')
|
|
PsiElement(Py:COLON)(':')
|
|
PsiWhiteSpace('\n ')
|
|
PyStatementList
|
|
PyFunction('null')
|
|
PyDecoratorList
|
|
PyDecorator: @staticmethod
|
|
PsiElement(Py:AT)('@')
|
|
PyReferenceExpression: staticmethod
|
|
PsiElement(Py:IDENTIFIER)('staticmethod')
|
|
PsiErrorElement:'@' or 'def' expected
|
|
<empty list>
|
|
PsiWhiteSpace('\n ')
|
|
PyParameterList
|
|
<empty list>
|
|
PyStatementList
|
|
<empty list>
|
|
PsiErrorElement:Unexpected indent
|
|
<empty list>
|
|
PyFunction('bad_method')
|
|
PsiElement(Py:DEF_KEYWORD)('def')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(Py:IDENTIFIER)('bad_method')
|
|
PyParameterList
|
|
PsiElement(Py:LPAR)('(')
|
|
PsiElement(Py:RPAR)(')')
|
|
PsiElement(Py:COLON)(':')
|
|
PsiWhiteSpace(' ')
|
|
PsiComment(Py:END_OF_LINE_COMMENT)('#test')
|
|
PsiWhiteSpace('\n ')
|
|
PyStatementList
|
|
PyPassStatement
|
|
PsiElement(Py:PASS_KEYWORD)('pass') |