Introduce ClassKind#CLASS_OBJECT and ClassKind#isObject and usages.
Rename LazyClassDescriptor#onlyEnumEntries -> enumClassObjectInfo. Determine ClassKind in JetClassInfo and JetObjectInfo constructor. Remove complex constructor for enum entry in enum test. Logic simplified in LazyClassMemberScope. Minor refactorings.
This commit is contained in:
@@ -779,7 +779,7 @@ public class NamespaceComparator {
|
||||
|
||||
@Override
|
||||
public void serialize(ClassKind kind) {
|
||||
assert kind == ClassKind.OBJECT : "Must be called for class objects only";
|
||||
assert kind == ClassKind.CLASS_OBJECT : "Must be called for class objects only";
|
||||
sb.append("class object");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user