mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed PY-11058 False positive Statement expected, found statement break
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
if True:
|
||||
import tmp2; import tmp1
|
||||
@@ -0,0 +1,24 @@
|
||||
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')
|
||||
Reference in New Issue
Block a user