PyFile:WithStatementRecoveryIncompleteParentheses.py
  PyWithStatement
    PsiElement(Py:WITH_KEYWORD)('with')
    PsiWhiteSpace(' ')
    PyWithItem
      PyParenthesizedExpression
        PsiElement(Py:LPAR)('(')
        PsiErrorElement:Unexpected expression syntax
          PsiElement(Py:COLON)(':')
          PsiWhiteSpace('\n    ')
          PsiElement(Py:PASS_KEYWORD)('pass')
          PsiWhiteSpace('\n')
          PsiElement(Py:WITH_KEYWORD)('with')
          PsiWhiteSpace(' ')
          PsiElement(Py:LPAR)('(')
          PsiElement(Py:IDENTIFIER)('foo')
          PsiElement(Py:LPAR)('(')
        PsiElement(Py:RPAR)(')')
    PsiElement(Py:COLON)(':')
    PsiWhiteSpace('\n    ')
    PyStatementList
      PyPassStatement
        PsiElement(Py:PASS_KEYWORD)('pass')
        PsiErrorElement:End of statement expected
          <empty list>
  PsiWhiteSpace('\n')
  PyWithStatement
    PsiElement(Py:WITH_KEYWORD)('with')
    PsiWhiteSpace(' ')
    PsiElement(Py:LPAR)('(')
    PyWithItem
      PyCallExpression: foo
        PyReferenceExpression: foo
          PsiElement(Py:IDENTIFIER)('foo')
        PyArgumentList
          PsiElement(Py:LPAR)('(')
          PsiElement(Py:RPAR)(')')
      PsiWhiteSpace(' ')
      PsiElement(Py:AS_KEYWORD)('as')
      PsiErrorElement:Identifier expected
        <empty list>
    PsiElement(Py:COLON)(':')
    PsiWhiteSpace('\n    ')
    PyStatementList
      PyPassStatement
        PsiElement(Py:PASS_KEYWORD)('pass')
        PsiErrorElement:End of statement expected
          <empty list>
  PsiWhiteSpace('\n')
  PyWithStatement
    PsiElement(Py:WITH_KEYWORD)('with')
    PsiWhiteSpace(' ')
    PsiElement(Py:LPAR)('(')
    PyWithItem
      PyCallExpression: foo
        PyReferenceExpression: foo
          PsiElement(Py:IDENTIFIER)('foo')
        PyArgumentList
          PsiElement(Py:LPAR)('(')
          PsiElement(Py:RPAR)(')')
      PsiWhiteSpace(' ')
      PsiElement(Py:AS_KEYWORD)('as')
      PsiWhiteSpace(' ')
      PyTargetExpression: bar
        PsiElement(Py:IDENTIFIER)('bar')
    PsiErrorElement:')' expected
      <empty list>
    PsiElement(Py:COLON)(':')
    PsiWhiteSpace('\n    ')
    PyStatementList
      PyPassStatement
        PsiElement(Py:PASS_KEYWORD)('pass')
        PsiErrorElement:End of statement expected
          <empty list>
  PsiWhiteSpace('\n')
  PyWithStatement
    PsiElement(Py:WITH_KEYWORD)('with')
    PsiWhiteSpace(' ')
    PsiElement(Py:LPAR)('(')
    PyWithItem
      PyParenthesizedExpression
        PsiElement(Py:LPAR)('(')
        PyCallExpression: foo
          PyReferenceExpression: foo
            PsiElement(Py:IDENTIFIER)('foo')
          PyArgumentList
            PsiElement(Py:LPAR)('(')
            PsiElement(Py:RPAR)(')')
        PsiWhiteSpace(' ')
        PsiErrorElement:Unexpected expression syntax
          PsiElement(Py:AS_KEYWORD)('as')
          PsiWhiteSpace(' ')
          PsiElement(Py:IDENTIFIER)('bar')
        PsiElement(Py:RPAR)(')')
    PsiErrorElement:')' expected
      <empty list>
    PsiElement(Py:COLON)(':')
    PsiWhiteSpace('\n    ')
    PyStatementList
      PyPassStatement
        PsiElement(Py:PASS_KEYWORD)('pass')