Enum deprecated syntax detection implemented and integrated into DeclarationsChecker.
A lot of tests was changed to refactor deprecated syntax. Six new tests were added to check deprecated syntax detection. Diagnostic for "enum entry uses deprecated super constructor": constructor is highlighted Diagnostic for "enum entry uses deprecated or no delimiter". One warning removed.
This commit is contained in:
+4
-4
@@ -22,7 +22,7 @@ class A {
|
||||
}
|
||||
|
||||
<!NON_TOPLEVEL_CLASS_DECLARATION!>enum class E<!> {
|
||||
X Y
|
||||
X, Y;
|
||||
|
||||
companion object {}
|
||||
}
|
||||
@@ -52,7 +52,7 @@ interface T {
|
||||
}
|
||||
|
||||
<!NON_TOPLEVEL_CLASS_DECLARATION!>enum class E<!> {
|
||||
X Y
|
||||
X, Y;
|
||||
|
||||
companion object {}
|
||||
}
|
||||
@@ -61,7 +61,7 @@ interface T {
|
||||
}
|
||||
|
||||
enum class E {
|
||||
X Y
|
||||
X, Y;
|
||||
|
||||
<!NON_TOPLEVEL_CLASS_DECLARATION!>class B<!> {
|
||||
<!NON_TOPLEVEL_CLASS_DECLARATION!>class C<!>
|
||||
@@ -86,7 +86,7 @@ enum class E {
|
||||
}
|
||||
|
||||
<!NON_TOPLEVEL_CLASS_DECLARATION!>enum class E<!> {
|
||||
X Y
|
||||
X, Y;
|
||||
|
||||
companion object {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user