mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 08:51:02 +07:00
- Added PyDecorator.getExpression() to reflect that in Python 3.9 an arbitrary expression can be used after "@". Reused it where possible in the implementation. - Removed hasPlainReferenceCallee() in favor of existing getQualifiedName(). Updated javadoc for the latter to clarify how it handles non-trivial callees. - Added PSI stub tests to make sure that right values are still persisted with the new flexible decorator grammar. GitOrigin-RevId: 8109b834c8d257c72f6f6e3c0ce5005060a2b971
10 lines
85 B
Python
10 lines
85 B
Python
@
|
|
@foo
|
|
@foo()
|
|
@foo.bar
|
|
@foo.bar(42)
|
|
@(foo)
|
|
@foo[42]
|
|
@foo[42].bar
|
|
def func():
|
|
pass |