[FIR] Partial implementation of DEPRECATION(_ERROR) diagnostics

No support for inheritance deprecations
and deprecations in qualifier's parts
This commit is contained in:
Andrey Zinovyev
2021-06-23 15:25:23 +03:00
committed by teamcityserver
parent 9fad55d551
commit de3f31cf78
188 changed files with 984 additions and 1052 deletions
@@ -72,16 +72,17 @@ internal class OneElementArrayMap<T : Any>(val value: T, val index: Int) : Array
}
internal class ArrayMapImpl<T : Any> private constructor(
private var data: Array<Any?>
private var data: Array<Any?>,
initialSize: Int
) : ArrayMap<T>() {
companion object {
private const val DEFAULT_SIZE = 20
private const val INCREASE_K = 2
}
constructor() : this(arrayOfNulls<Any>(DEFAULT_SIZE))
constructor() : this(arrayOfNulls<Any>(DEFAULT_SIZE), 0)
override var size: Int = 0
override var size: Int = initialSize
private set
@@ -104,7 +105,7 @@ internal class ArrayMapImpl<T : Any> private constructor(
return data.getOrNull(index) as T?
}
override fun copy(): ArrayMap<T> = ArrayMapImpl(data.copyOf())
override fun copy(): ArrayMap<T> = ArrayMapImpl(data.copyOf(), size)
override fun iterator(): Iterator<T> {
return object : AbstractIterator<T>() {