JetFile: fileAnnotationInWrongPlace.kt
  PACKAGE_DIRECTIVE
    PsiElement(package)('package')
    PsiWhiteSpace(' ')
    REFERENCE_EXPRESSION
      PsiElement(IDENTIFIER)('bar')
  IMPORT_LIST
    <empty list>
  PsiWhiteSpace('\n\n')
  PROPERTY
    MODIFIER_LIST
      ANNOTATION_ENTRY
        PsiElement(AT)('@')
        PsiErrorElement:@file annotations are only allowed before package declaration
          PsiElement(file)('file')
          PsiElement(COLON)(':')
        CONSTRUCTOR_CALLEE
          TYPE_REFERENCE
            USER_TYPE
              REFERENCE_EXPRESSION
                PsiElement(IDENTIFIER)('foo')
    PsiWhiteSpace('\n')
    PsiElement(val)('val')
    PsiWhiteSpace(' ')
    PsiElement(IDENTIFIER)('prop')
  PsiWhiteSpace('\n\n')
  FUN
    MODIFIER_LIST
      ANNOTATION
        PsiElement(AT)('@')
        PsiErrorElement:@file annotations are only allowed before package declaration
          PsiElement(file)('file')
          PsiElement(COLON)(':')
        PsiElement(LBRACKET)('[')
        ANNOTATION_ENTRY
          CONSTRUCTOR_CALLEE
            TYPE_REFERENCE
              USER_TYPE
                REFERENCE_EXPRESSION
                  PsiElement(IDENTIFIER)('bar')
        PsiWhiteSpace(' ')
        ANNOTATION_ENTRY
          CONSTRUCTOR_CALLEE
            TYPE_REFERENCE
              USER_TYPE
                REFERENCE_EXPRESSION
                  PsiElement(IDENTIFIER)('baz')
        PsiElement(RBRACKET)(']')
    PsiWhiteSpace('\n')
    PsiElement(fun)('fun')
    PsiWhiteSpace(' ')
    PsiElement(IDENTIFIER)('func')
    VALUE_PARAMETER_LIST
      PsiElement(LPAR)('(')
      PsiElement(RPAR)(')')
    PsiWhiteSpace(' ')
    BLOCK
      PsiElement(LBRACE)('{')
      PsiElement(RBRACE)('}')
  PsiWhiteSpace('\n\n')
  CLASS
    MODIFIER_LIST
      ANNOTATION
        PsiElement(AT)('@')
        PsiErrorElement:@file annotations are only allowed before package declaration
          PsiElement(file)('file')
          PsiElement(COLON)(':')
        PsiElement(LBRACKET)('[')
        ANNOTATION_ENTRY
          CONSTRUCTOR_CALLEE
            TYPE_REFERENCE
              USER_TYPE
                REFERENCE_EXPRESSION
                  PsiElement(IDENTIFIER)('baz')
        PsiElement(RBRACKET)(']')
    PsiWhiteSpace('\n')
    PsiElement(class)('class')
    PsiWhiteSpace(' ')
    PsiElement(IDENTIFIER)('C')
  PsiWhiteSpace('\n\n')
  CLASS
    MODIFIER_LIST
      PsiErrorElement:Expected annotation identifier after ':'
        PsiElement(AT)('@')
        PsiElement(IDENTIFIER)('file')
        PsiElement(COLON)(':')
    PsiWhiteSpace('\n')
    PsiElement(interface)('interface')
    PsiWhiteSpace(' ')
    PsiElement(IDENTIFIER)('T')
  PsiWhiteSpace('\n\n')
  CLASS
    MODIFIER_LIST
      ANNOTATION
        PsiElement(AT)('@')
        PsiErrorElement:@file annotations are only allowed before package declaration
          PsiElement(file)('file')
          PsiElement(COLON)(':')
        PsiElement(LBRACKET)('[')
        PsiErrorElement:Expecting a list of annotations
          <empty list>
        PsiElement(RBRACKET)(']')
    PsiWhiteSpace('\n')
    PsiElement(interface)('interface')
    PsiWhiteSpace(' ')
    PsiElement(IDENTIFIER)('T')