PyFile:BlockWithoutColon.py
  PyFunction('foo')
    PsiElement(Py:DEF_KEYWORD)('def')
    PsiWhiteSpace(' ')
    PsiElement(Py:IDENTIFIER)('foo')
    PyParameterList
      PsiElement(Py:LPAR)('(')
      PsiElement(Py:RPAR)(')')
    PsiElement(Py:COLON)(':')
    PsiWhiteSpace('\n    ')
    PyStatementList
      PyWhileStatement
        PyWhilePart
          PsiElement(Py:WHILE_KEYWORD)('while')
          PsiWhiteSpace(' ')
          PyReferenceExpression: True
            PsiElement(Py:IDENTIFIER)('True')
          PsiErrorElement:':' expected
            <empty list>
          PsiWhiteSpace('\n        ')
          PyStatementList
            PyAssignmentStatement
              PyTargetExpression: x
                PsiElement(Py:IDENTIFIER)('x')
              PsiWhiteSpace(' ')
              PsiElement(Py:EQ)('=')
              PsiWhiteSpace(' ')
              PyNumericLiteralExpression
                PsiElement(Py:INTEGER_LITERAL)('1')
      PsiWhiteSpace('\n    ')
      PyAssignmentStatement
        PyTargetExpression: x
          PsiElement(Py:IDENTIFIER)('x')
        PsiWhiteSpace(' ')
        PsiElement(Py:EQ)('=')
        PsiWhiteSpace(' ')
        PyNumericLiteralExpression
          PsiElement(Py:INTEGER_LITERAL)('2')
      PsiWhiteSpace('\n    ')
      PyReturnStatement
        PsiElement(Py:RETURN_KEYWORD)('return')
        PsiWhiteSpace(' ')
        PyReferenceExpression: x
          PsiElement(Py:IDENTIFIER)('x')