mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 01:50:56 +07:00
Previously it was prohibited in signatures containing varargs and single stars (delimiting normal and keyword-only parameters).
99 lines
3.0 KiB
Plaintext
99 lines
3.0 KiB
Plaintext
PyFile:CommaAfterStarArgAllowedInPython36.py
|
|
PyFunction('f1')
|
|
PsiElement(Py:DEF_KEYWORD)('def')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(Py:IDENTIFIER)('f1')
|
|
PyParameterList
|
|
PsiElement(Py:LPAR)('(')
|
|
PySingleStarParameter
|
|
PsiElement(Py:MULT)('*')
|
|
PsiElement(Py:COMMA)(',')
|
|
PsiWhiteSpace(' ')
|
|
PyNamedParameter('x')
|
|
PsiElement(Py:IDENTIFIER)('x')
|
|
PsiElement(Py:COMMA)(',')
|
|
PsiElement(Py:RPAR)(')')
|
|
PsiElement(Py:COLON)(':')
|
|
PsiWhiteSpace('\n ')
|
|
PyStatementList
|
|
PyPassStatement
|
|
PsiElement(Py:PASS_KEYWORD)('pass')
|
|
PsiWhiteSpace('\n\n\n')
|
|
PyFunction('f2')
|
|
PsiElement(Py:DEF_KEYWORD)('def')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(Py:IDENTIFIER)('f2')
|
|
PyParameterList
|
|
PsiElement(Py:LPAR)('(')
|
|
PyNamedParameter('args')
|
|
PsiElement(Py:MULT)('*')
|
|
PsiElement(Py:IDENTIFIER)('args')
|
|
PsiElement(Py:COMMA)(',')
|
|
PsiElement(Py:RPAR)(')')
|
|
PsiElement(Py:COLON)(':')
|
|
PsiWhiteSpace('\n ')
|
|
PyStatementList
|
|
PyPassStatement
|
|
PsiElement(Py:PASS_KEYWORD)('pass')
|
|
PsiWhiteSpace('\n\n\n')
|
|
PyFunction('f3')
|
|
PsiElement(Py:DEF_KEYWORD)('def')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(Py:IDENTIFIER)('f3')
|
|
PyParameterList
|
|
PsiElement(Py:LPAR)('(')
|
|
PyNamedParameter('kwargs')
|
|
PsiElement(Py:EXP)('**')
|
|
PsiElement(Py:IDENTIFIER)('kwargs')
|
|
PsiElement(Py:COMMA)(',')
|
|
PsiElement(Py:RPAR)(')')
|
|
PsiElement(Py:COLON)(':')
|
|
PsiWhiteSpace('\n ')
|
|
PyStatementList
|
|
PyPassStatement
|
|
PsiElement(Py:PASS_KEYWORD)('pass')
|
|
PsiWhiteSpace('\n\n\n')
|
|
PyExpressionStatement
|
|
PyLambdaExpression
|
|
PsiElement(Py:LAMBDA_KEYWORD)('lambda')
|
|
PsiWhiteSpace(' ')
|
|
PyParameterList
|
|
PySingleStarParameter
|
|
PsiElement(Py:MULT)('*')
|
|
PsiElement(Py:COMMA)(',')
|
|
PsiWhiteSpace(' ')
|
|
PyNamedParameter('x')
|
|
PsiElement(Py:IDENTIFIER)('x')
|
|
PsiElement(Py:COMMA)(',')
|
|
PsiElement(Py:COLON)(':')
|
|
PsiWhiteSpace(' ')
|
|
PyNumericLiteralExpression
|
|
PsiElement(Py:INTEGER_LITERAL)('42')
|
|
PsiWhiteSpace('\n')
|
|
PyExpressionStatement
|
|
PyLambdaExpression
|
|
PsiElement(Py:LAMBDA_KEYWORD)('lambda')
|
|
PsiWhiteSpace(' ')
|
|
PyParameterList
|
|
PyNamedParameter('args')
|
|
PsiElement(Py:MULT)('*')
|
|
PsiElement(Py:IDENTIFIER)('args')
|
|
PsiElement(Py:COMMA)(',')
|
|
PsiElement(Py:COLON)(':')
|
|
PsiWhiteSpace(' ')
|
|
PyNumericLiteralExpression
|
|
PsiElement(Py:INTEGER_LITERAL)('42')
|
|
PsiWhiteSpace('\n')
|
|
PyExpressionStatement
|
|
PyLambdaExpression
|
|
PsiElement(Py:LAMBDA_KEYWORD)('lambda')
|
|
PsiWhiteSpace(' ')
|
|
PyParameterList
|
|
PyNamedParameter('kwargs')
|
|
PsiElement(Py:MULT)('*')
|
|
PsiElement(Py:IDENTIFIER)('kwargs')
|
|
PsiElement(Py:COMMA)(',')
|
|
PsiElement(Py:COLON)(':')
|
|
PsiWhiteSpace(' ')
|
|
PyNumericLiteralExpression
|
|
PsiElement(Py:INTEGER_LITERAL)('42') |