Report syntax error on unescaped annotation

Also adjust parser testData
This commit is contained in:
Denis Zharkov
2015-09-14 13:54:52 +03:00
parent 3adeb966b5
commit 02aafe4262
51 changed files with 372 additions and 47 deletions
+3 -3
View File
@@ -3,15 +3,15 @@ class A {
val x: Int
private annot constructor(x: Int) {}
private @annot constructor(x: Int) {}
@constructor fun constructor() {}
annot protected constructor(x: Int, y: Int) : this(1,2) {}
@annot protected constructor(x: Int, y: Int) : this(1,2) {}
@[constructor] public constructor() : super() {
x = 1
}
}
constructor class B
@constructor class B
+3
View File
@@ -40,6 +40,7 @@ JetFile: basic.kt
PsiElement(private)('private')
PsiWhiteSpace(' ')
ANNOTATION_ENTRY
PsiElement(AT)('@')
CONSTRUCTOR_CALLEE
TYPE_REFERENCE
USER_TYPE
@@ -90,6 +91,7 @@ JetFile: basic.kt
SECONDARY_CONSTRUCTOR
MODIFIER_LIST
ANNOTATION_ENTRY
PsiElement(AT)('@')
CONSTRUCTOR_CALLEE
TYPE_REFERENCE
USER_TYPE
@@ -190,6 +192,7 @@ JetFile: basic.kt
CLASS
MODIFIER_LIST
ANNOTATION_ENTRY
PsiElement(AT)('@')
CONSTRUCTOR_CALLEE
TYPE_REFERENCE
USER_TYPE