mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 08:09:39 +07:00
report missing identifier after 'as' (PY-9853)
This commit is contained in:
2
python/testData/psi/WithMissingID.py
Normal file
2
python/testData/psi/WithMissingID.py
Normal file
@@ -0,0 +1,2 @@
|
||||
with open("") as :
|
||||
pass
|
||||
23
python/testData/psi/WithMissingID.txt
Normal file
23
python/testData/psi/WithMissingID.txt
Normal file
@@ -0,0 +1,23 @@
|
||||
PyFile:WithMissingID.py
|
||||
PyWithStatement
|
||||
PsiElement(Py:WITH_KEYWORD)('with')
|
||||
PsiWhiteSpace(' ')
|
||||
PyWithItem
|
||||
PyCallExpression: open
|
||||
PyReferenceExpression: open
|
||||
PsiElement(Py:IDENTIFIER)('open')
|
||||
PyArgumentList
|
||||
PsiElement(Py:LPAR)('(')
|
||||
PyStringLiteralExpression:
|
||||
PsiElement(Py:SINGLE_QUOTED_STRING)('""')
|
||||
PsiElement(Py:RPAR)(')')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(Py:AS_KEYWORD)('as')
|
||||
PsiErrorElement:identifier expected
|
||||
<empty list>
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(Py:COLON)(':')
|
||||
PsiWhiteSpace('\n ')
|
||||
PyStatementList
|
||||
PyPassStatement
|
||||
PsiElement(Py:PASS_KEYWORD)('pass')
|
||||
Reference in New Issue
Block a user