Compiler&plugin deprecations cleanup: replace streams with sequences.
This commit is contained in:
@@ -113,7 +113,7 @@ private fun getDefaultParamsNames(
|
||||
): Set<JsName> {
|
||||
|
||||
val argsParams = args.zipWithDefault(params, Namer.UNDEFINED_EXPRESSION)
|
||||
val relevantParams = argsParams.stream()
|
||||
val relevantParams = argsParams.asSequence()
|
||||
.filter { it.second.hasDefaultValue }
|
||||
.filter { initialized == !isUndefined(it.first) }
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ public fun <T> Collection<T>.toIdentitySet(): MutableSet<T> {
|
||||
return result
|
||||
}
|
||||
|
||||
public fun <T> Stream<T>.toIdentitySet(): MutableSet<T> {
|
||||
public fun <T> Sequence<T>.toIdentitySet(): MutableSet<T> {
|
||||
val result = IdentitySet<T>()
|
||||
for (element in this) {
|
||||
result.add(element)
|
||||
|
||||
Reference in New Issue
Block a user