Convert ClassKind.java to Kotlin

This commit is contained in:
Dmitriy Novozhilov
2021-07-07 14:32:46 +03:00
committed by teamcityserver
parent 0062f1ba27
commit b2c6dd8d53
@@ -13,10 +13,9 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.jetbrains.kotlin.descriptors
package org.jetbrains.kotlin.descriptors; enum class ClassKind {
public enum ClassKind {
CLASS, CLASS,
INTERFACE, INTERFACE,
ENUM_CLASS, ENUM_CLASS,
@@ -24,7 +23,6 @@ public enum ClassKind {
ANNOTATION_CLASS, ANNOTATION_CLASS,
OBJECT; OBJECT;
public boolean isSingleton() { val isSingleton: Boolean
return this == OBJECT || this == ENUM_ENTRY; get() = this == OBJECT || this == ENUM_ENTRY
}
} }