mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Enhanced callee resolution for decorators. Tests for decorators.
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
@staticmethod
|
||||
@xmlize(node="foo")
|
||||
def foo():
|
||||
pass
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
PyFile:DecoratedFunction.py
|
||||
PyFunction
|
||||
PyDecoratorList
|
||||
PyDecorator: @staticmethod
|
||||
PsiElement(Py:AT)('@')
|
||||
PyReferenceExpression: staticmethod
|
||||
PsiElement(Py:IDENTIFIER)('staticmethod')
|
||||
PsiWhiteSpace('\n')
|
||||
PyDecorator: @xmlize
|
||||
PsiElement(Py:AT)('@')
|
||||
PyReferenceExpression: xmlize
|
||||
PsiElement(Py:IDENTIFIER)('xmlize')
|
||||
PyArgumentList
|
||||
PsiElement(Py:LPAR)('(')
|
||||
PyKeywordArgumentImpl: node
|
||||
PsiElement(Py:IDENTIFIER)('node')
|
||||
PsiElement(Py:EQ)('=')
|
||||
PyStringLiteralExpression: foo
|
||||
PsiElement(Py:STRING_LITERAL)('"foo"')
|
||||
PsiElement(Py:RPAR)(')')
|
||||
PsiWhiteSpace('\n')
|
||||
PsiElement(Py:DEF_KEYWORD)('def')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(Py:IDENTIFIER)('foo')
|
||||
PyParameterList
|
||||
PsiElement(Py:LPAR)('(')
|
||||
PsiElement(Py:RPAR)(')')
|
||||
PsiElement(Py:COLON)(':')
|
||||
PsiWhiteSpace('\n ')
|
||||
PyStatementList
|
||||
PyPassStatement
|
||||
PsiElement(Py:PASS_KEYWORD)('pass')
|
||||
Reference in New Issue
Block a user