understand "interface" keyword as synonym for "trait"

This commit is contained in:
Dmitry Jemerov
2015-04-27 14:02:37 +02:00
parent 55cfd3b0c7
commit ee60ce8369
9 changed files with 439 additions and 403 deletions
+4
View File
@@ -0,0 +1,4 @@
interface Foo {
fun f()
val a
}
+25
View File
@@ -0,0 +1,25 @@
JetFile: Interface.kt
PACKAGE_DIRECTIVE
<empty list>
CLASS
PsiElement(interface)('interface')
PsiWhiteSpace(' ')
PsiElement(IDENTIFIER)('Foo')
PsiWhiteSpace(' ')
CLASS_BODY
PsiElement(LBRACE)('{')
PsiWhiteSpace('\n ')
FUN
PsiElement(fun)('fun')
PsiWhiteSpace(' ')
PsiElement(IDENTIFIER)('f')
VALUE_PARAMETER_LIST
PsiElement(LPAR)('(')
PsiElement(RPAR)(')')
PsiWhiteSpace('\n ')
PROPERTY
PsiElement(val)('val')
PsiWhiteSpace(' ')
PsiElement(IDENTIFIER)('a')
PsiWhiteSpace('\n')
PsiElement(RBRACE)('}')