Psi: Introduce KtScriptInitializer, a separate entity for script initializers which are quite a bit different from class initializers

This commit is contained in:
Pavel V. Talanov
2015-11-19 15:32:44 +03:00
parent 321364102a
commit dbd49c37c1
28 changed files with 93 additions and 63 deletions
+2 -2
View File
@@ -96,7 +96,7 @@ JetFile: semicolonBetweenDeclarations.kt
PsiElement(RPAR)(')')
PsiElement(SEMICOLON)(';')
PsiWhiteSpace('\n\n ')
ANONYMOUS_INITIALIZER
CLASS_INITIALIZER
PsiElement(init)('init')
PsiWhiteSpace(' ')
BLOCK
@@ -162,7 +162,7 @@ JetFile: semicolonBetweenDeclarations.kt
<empty list>
PsiElement(SEMICOLON)(';')
PsiWhiteSpace('\n ')
ANONYMOUS_INITIALIZER
CLASS_INITIALIZER
PsiElement(init)('init')
PsiErrorElement:Expecting '{' after 'init'
<empty list>