Files
openide/python/testData/psi/PatternMatchingAnnotatedAssignmentLooksLikeIncompleteMatchStatement.txt
Mikhail Golubev 0db66c81a5 PY-49990 Parse a match statement without a subject as a type declaration
GitOrigin-RevId: 5c6dc8257973dd0f22a5ef8dd5883628205689a7
2021-08-09 14:39:03 +00:00

14 lines
469 B
Plaintext

PyFile:PatternMatchingAnnotatedAssignmentLooksLikeIncompleteMatchStatement.py
PyAssignmentStatement
PyTargetExpression: match
PsiElement(Py:IDENTIFIER)('match')
PyAnnotation
PsiElement(Py:COLON)(':')
PsiWhiteSpace(' ')
PyReferenceExpression: case
PsiElement(Py:IDENTIFIER)('case')
PsiWhiteSpace(' ')
PsiElement(Py:EQ)('=')
PsiWhiteSpace(' ')
PyNumericLiteralExpression
PsiElement(Py:INTEGER_LITERAL)('42')