mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
In Python 3 ellipsis can appear anywhere, not only in sequence slicings. The parser now always passes ellipsis, it's incorrect use is detected at the unsupported features annotator or compatibility inspection levels.
50 lines
1.4 KiB
Plaintext
50 lines
1.4 KiB
Plaintext
PyFile:EllipsisPython3.py
|
|
PyExpressionStatement
|
|
PyNoneLiteralExpression
|
|
PsiElement(Py:DOT)('.')
|
|
PsiElement(Py:DOT)('.')
|
|
PsiElement(Py:DOT)('.')
|
|
PsiWhiteSpace('\n')
|
|
PyAssignmentStatement
|
|
PyTargetExpression: x
|
|
PsiElement(Py:IDENTIFIER)('x')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(Py:EQ)('=')
|
|
PsiWhiteSpace(' ')
|
|
PyNoneLiteralExpression
|
|
PsiElement(Py:DOT)('.')
|
|
PsiElement(Py:DOT)('.')
|
|
PsiElement(Py:DOT)('.')
|
|
PsiWhiteSpace('\n')
|
|
PyExpressionStatement
|
|
PyListLiteralExpression
|
|
PsiElement(Py:LBRACKET)('[')
|
|
PyNumericLiteralExpression
|
|
PsiElement(Py:INTEGER_LITERAL)('1')
|
|
PsiElement(Py:COMMA)(',')
|
|
PsiWhiteSpace(' ')
|
|
PyNumericLiteralExpression
|
|
PsiElement(Py:INTEGER_LITERAL)('2')
|
|
PsiElement(Py:COMMA)(',')
|
|
PsiWhiteSpace(' ')
|
|
PyNoneLiteralExpression
|
|
PsiElement(Py:DOT)('.')
|
|
PsiElement(Py:DOT)('.')
|
|
PsiElement(Py:DOT)('.')
|
|
PsiElement(Py:RBRACKET)(']')
|
|
PsiWhiteSpace('\n')
|
|
PyFunction('f')
|
|
PsiElement(Py:DEF_KEYWORD)('def')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(Py:IDENTIFIER)('f')
|
|
PyParameterList
|
|
PsiElement(Py:LPAR)('(')
|
|
PsiElement(Py:RPAR)(')')
|
|
PsiElement(Py:COLON)(':')
|
|
PsiWhiteSpace('\n ')
|
|
PyStatementList
|
|
PyExpressionStatement
|
|
PyNoneLiteralExpression
|
|
PsiElement(Py:DOT)('.')
|
|
PsiElement(Py:DOT)('.')
|
|
PsiElement(Py:DOT)('.') |