Add platform/impl soft keywords, add isPlatform/isImpl to MemberDescriptor

This commit is contained in:
Alexander Udalov
2016-10-26 12:24:16 +03:00
parent 0dc31af73d
commit 6e2ef9b1d2
40 changed files with 198 additions and 11 deletions
@@ -95,6 +95,9 @@ class LazyJavaClassDescriptor(
override fun isInner() = isInner
override fun isData() = false
override fun isCompanionObject() = false
override fun isPlatform() = false
override fun isImpl() = false
private val typeConstructor = c.storageManager.createLazyValue { LazyJavaClassTypeConstructor() }
override fun getTypeConstructor(): TypeConstructor = typeConstructor()
@@ -132,8 +135,6 @@ class LazyJavaClassDescriptor(
override fun getFunctionTypeForSamInterface(): SimpleType? = functionTypeForSamInterface()
override fun isCompanionObject() = false
override fun toString() = "Lazy Java class ${this.fqNameUnsafe}"
private inner class LazyJavaClassTypeConstructor : AbstractClassTypeConstructor(c.storageManager) {