Fixes PY-105: "with" statement becomes a name definer and resolutions to its 'as' name works.

This commit is contained in:
Dmitry Cheryasov
2008-11-14 03:15:37 +03:00
parent c090f15509
commit a70e1e5bf8
7 changed files with 39 additions and 6 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ PyFile:WithStatement.py
PsiWhiteSpace(' ')
PsiElement(Py:AS_KEYWORD)('as')
PsiWhiteSpace(' ')
PyReferenceExpression: y
PyTargetExpression: y
PsiElement(Py:IDENTIFIER)('y')
PsiElement(Py:COLON)(':')
PsiWhiteSpace('\n ')
+1 -1
View File
@@ -55,7 +55,7 @@ PyFile:WithStatement2.py
PsiWhiteSpace(' ')
PsiElement(Py:AS_KEYWORD)('as')
PsiWhiteSpace(' ')
PyReferenceExpression: y
PyTargetExpression: y
PsiElement(Py:IDENTIFIER)('y')
PsiElement(Py:COLON)(':')
PsiWhiteSpace(' ')