Files
openide/python/testData/psi/ResetAfterSemicolon.txt
Andrey Vlasovskikh 91a45bf7ed Restored None, False, True as non-keywords (reserved words) in PY2 (PY-23305, PY-23364)
Typeshed doesn't contain the definitions for them in __builtins__.pyi
so we have to provide types and detect the builtin status for these
words as a special case.
2017-04-17 21:17:35 +03:00

24 lines
798 B
Plaintext

PyFile:ResetAfterSemicolon.py
PyIfStatement
PyIfPartIf
PsiElement(Py:IF_KEYWORD)('if')
PsiWhiteSpace(' ')
PyReferenceExpression: True
PsiElement(Py:IDENTIFIER)('True')
PsiElement(Py:COLON)(':')
PsiWhiteSpace('\n ')
PyStatementList
PyImportStatement
PsiElement(Py:IMPORT_KEYWORD)('import')
PsiWhiteSpace(' ')
PyImportElement:tmp2
PyReferenceExpression: tmp2
PsiElement(Py:IDENTIFIER)('tmp2')
PsiElement(Py:SEMICOLON)(';')
PsiWhiteSpace(' ')
PyImportStatement
PsiElement(Py:IMPORT_KEYWORD)('import')
PsiWhiteSpace(' ')
PyImportElement:tmp1
PyReferenceExpression: tmp1
PsiElement(Py:IDENTIFIER)('tmp1')