JetFile: Match_ERR.jet
  NAMESPACE
    FUN
      PsiElement(fun)('fun')
      PsiWhiteSpace(' ')
      PsiElement(IDENTIFIER)('foo')
      TYPE_PARAMETER_LIST
        <empty list>
      VALUE_PARAMETER_LIST
        PsiElement(LPAR)('(')
        PsiElement(RPAR)(')')
      PsiWhiteSpace(' ')
      BLOCK
        PsiElement(LBRACE)('{')
        PsiWhiteSpace('\n  ')
        MATCH_EXPRESSION
          REFERENCE_EXPRESSION
            PsiElement(IDENTIFIER)('e')
          PsiWhiteSpace(' ')
          PsiElement(match)('match')
          PsiWhiteSpace(' ')
          MATCH_BLOCK
            PsiElement(LBRACE)('{')
            PsiWhiteSpace('\n\n  ')
            PsiElement(RBRACE)('}')
        PsiWhiteSpace('\n  ')
        MATCH_EXPRESSION
          REFERENCE_EXPRESSION
            PsiElement(IDENTIFIER)('e')
          PsiWhiteSpace(' ')
          PsiElement(match)('match')
          PsiWhiteSpace(' ')
          MATCH_BLOCK
            PsiElement(LBRACE)('{')
            PsiWhiteSpace('\n    ')
            MATCH_ENTRY
              PsiElement(case)('case')
              PsiWhiteSpace('  ')
              PATTERN
                PsiErrorElement:Pattern expected
                  <empty list>
              PsiElement(DOUBLE_ARROW)('=>')
              PsiWhiteSpace(' ')
              REFERENCE_EXPRESSION
                PsiElement(IDENTIFIER)('foo')
            PsiWhiteSpace('\n  ')
            PsiElement(RBRACE)('}')
        PsiWhiteSpace('\n  ')
        MATCH_EXPRESSION
          REFERENCE_EXPRESSION
            PsiElement(IDENTIFIER)('e')
          PsiWhiteSpace(' ')
          PsiElement(match)('match')
          PsiWhiteSpace(' ')
          MATCH_BLOCK
            PsiElement(LBRACE)('{')
            PsiWhiteSpace('\n    ')
            MATCH_ENTRY
              PsiElement(case)('case')
              PsiWhiteSpace('  ')
              PATTERN
                PsiErrorElement:Pattern expected
                  <empty list>
              PsiElement(DOUBLE_ARROW)('=>')
              PsiWhiteSpace(' ')
              PsiErrorElement:Expecting an expression
                PsiElement(SEMICOLON)(';')
            PsiWhiteSpace('\n  ')
            PsiElement(RBRACE)('}')
        PsiWhiteSpace('\n  ')
        MATCH_EXPRESSION
          REFERENCE_EXPRESSION
            PsiElement(IDENTIFIER)('e')
          PsiWhiteSpace(' ')
          PsiElement(match)('match')
          PsiWhiteSpace(' ')
          MATCH_BLOCK
            PsiElement(LBRACE)('{')
            PsiWhiteSpace('\n    ')
            PsiErrorElement:Expecting 'case' to start pattern matching
              PsiElement(IDENTIFIER)('foo')
              PsiWhiteSpace(' ')
              PsiElement(IDENTIFIER)('bar')
            PsiWhiteSpace('\n    ')
            MATCH_ENTRY
              PsiElement(case)('case')
              PsiWhiteSpace(' ')
              PATTERN
                USER_TYPE
                  PsiElement(IDENTIFIER)('a')
              PsiWhiteSpace(' ')
              PsiElement(DOUBLE_ARROW)('=>')
              PsiWhiteSpace(' ')
              REFERENCE_EXPRESSION
                PsiElement(IDENTIFIER)('foo')
            PsiWhiteSpace('\n  ')
            PsiElement(RBRACE)('}')
        PsiWhiteSpace('\n  ')
        MATCH_EXPRESSION
          REFERENCE_EXPRESSION
            PsiElement(IDENTIFIER)('e')
          PsiWhiteSpace(' ')
          PsiElement(match)('match')
          PsiWhiteSpace(' ')
          MATCH_BLOCK
            PsiElement(LBRACE)('{')
            PsiWhiteSpace('\n    ')
            PsiErrorElement:Expecting 'case' to start pattern matching
              PsiElement(IDENTIFIER)('foo')
              PsiWhiteSpace(' ')
              PsiElement(IDENTIFIER)('bar')
            PsiWhiteSpace('\n  ')
            PsiElement(RBRACE)('}')
        PsiWhiteSpace('\n  ')
        MATCH_EXPRESSION
          MATCH_EXPRESSION
            REFERENCE_EXPRESSION
              PsiElement(IDENTIFIER)('e')
            PsiWhiteSpace(' ')
            PsiElement(match)('match')
            PsiWhiteSpace(' ')
            MATCH_BLOCK
              PsiElement(LBRACE)('{')
              PsiWhiteSpace('\n    ')
              MATCH_ENTRY
                PsiElement(case)('case')
                PsiWhiteSpace(' ')
                PATTERN
                  PsiErrorElement:Pattern expected
                    PsiElement(MINUS)('-')
                PsiWhiteSpace(' ')
                PsiElement(DOUBLE_ARROW)('=>')
                PsiWhiteSpace(' ')
                REFERENCE_EXPRESSION
                  PsiElement(IDENTIFIER)('foo')
              PsiWhiteSpace('\n    ')
              MATCH_ENTRY
                PsiElement(case)('case')
                PsiWhiteSpace(' ')
                PATTERN
                  TUPLE_PATTERN
                    PsiElement(LPAR)('(')
                    PsiErrorElement:Expecting a pattern
                      PsiElement(COMMA)(',')
                    PsiWhiteSpace(' ')
                    PsiErrorElement:Expecting a pattern
                      PsiElement(COMMA)(',')
                    PsiWhiteSpace(' ')
                    PATTERN
                      INTEGER_CONSTANT
                        PsiElement(INTEGER_LITERAL)('1')
                    PsiElement(COMMA)(',')
                    PsiWhiteSpace(' ')
                    PsiErrorElement:Expecting a pattern
                      PsiElement(COMMA)(',')
                    PsiWhiteSpace(' ')
                    PATTERN
                      PsiErrorElement:Pattern expected
                        PsiElement(RPAR)(')')
                    PsiErrorElement:Expecting ')'
                      <empty list>
                PsiWhiteSpace(' ')
                PsiElement(DOUBLE_ARROW)('=>')
                PsiWhiteSpace(' ')
                REFERENCE_EXPRESSION
                  PsiElement(IDENTIFIER)('foo')
              PsiWhiteSpace('\n  ')
              PsiElement(RBRACE)('}')
          PsiWhiteSpace(' ')
          PsiElement(match)('match')
          PsiWhiteSpace(' ')
          MATCH_BLOCK
            PsiElement(LBRACE)('{')
            PsiWhiteSpace('\n\n  ')
            PsiElement(RBRACE)('}')
        PsiWhiteSpace('\n')
        PsiElement(RBRACE)('}')