File tree Expand file tree Collapse file tree 5 files changed +9
-8
lines changed
commonMain/kotlin/com/strumenta/antlrkotlin/runtime
jsAndWasmSharedMain/kotlin/com/strumenta/antlrkotlin/runtime
jvmMain/kotlin/com/strumenta/antlrkotlin/runtime
nativeMain/kotlin/com/strumenta/antlrkotlin/runtime
wasmWasiMain/kotlin/com/strumenta/antlrkotlin/runtime Expand file tree Collapse file tree 5 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 2
2
// Copyright 2024-present Strumenta and contributors, licensed under BSD 3-Clause.
3
3
package com.strumenta.antlrkotlin.runtime
4
4
5
- public expect class WeakHashMap <K , V >() : MutableMap<K, V> {
5
+ internal expect class WeakHashMap <K , V >() : MutableMap<K, V> {
6
6
override val size: Int
7
7
override val entries: MutableSet <MutableMap .MutableEntry <K , V >>
8
8
override val keys: MutableSet <K >
Original file line number Diff line number Diff line change 1
1
// Copyright 2017-present Strumenta and contributors, licensed under Apache 2.0.
2
2
// Copyright 2024-present Strumenta and contributors, licensed under BSD 3-Clause.
3
-
4
3
package com.strumenta.antlrkotlin.runtime
5
4
6
5
// Note(Edoardo): this is implemented as an HashMap in the JS target,
7
6
// so let's keep it as it is
8
- public actual typealias WeakHashMap <K , V > = HashMap <K , V >
7
+ @Suppress(" ACTUAL_WITHOUT_EXPECT" )
8
+ internal actual typealias WeakHashMap <K , V > = HashMap <K , V >
Original file line number Diff line number Diff line change 1
1
// Copyright 2017-present Strumenta and contributors, licensed under Apache 2.0.
2
2
// Copyright 2024-present Strumenta and contributors, licensed under BSD 3-Clause.
3
-
4
3
package com.strumenta.antlrkotlin.runtime
5
4
6
5
import java.util.WeakHashMap as JavaWeakHashMap
7
6
8
- public actual typealias WeakHashMap <K , V > = JavaWeakHashMap <K , V >
7
+ @Suppress(" ACTUAL_WITHOUT_EXPECT" )
8
+ internal actual typealias WeakHashMap <K , V > = JavaWeakHashMap <K , V >
Original file line number Diff line number Diff line change 1
1
// Copyright 2017-present Strumenta and contributors, licensed under Apache 2.0.
2
2
// Copyright 2024-present Strumenta and contributors, licensed under BSD 3-Clause.
3
-
4
3
package com.strumenta.antlrkotlin.runtime
5
4
6
5
// TODO(Edoardo): implement real weak keys.
7
6
// See kotlinlang.org/api/latest/jvm/stdlib/kotlin.native.ref
8
7
// for classes and functions useful for a possible implementation
9
- public actual typealias WeakHashMap <K , V > = HashMap <K , V >
8
+ @Suppress(" ACTUAL_WITHOUT_EXPECT" )
9
+ internal actual typealias WeakHashMap <K , V > = HashMap <K , V >
Original file line number Diff line number Diff line change 3
3
package com.strumenta.antlrkotlin.runtime
4
4
5
5
// TODO(Edoardo): implement real weak keys
6
- public actual typealias WeakHashMap <K , V > = HashMap <K , V >
6
+ @Suppress(" ACTUAL_WITHOUT_EXPECT" )
7
+ internal actual typealias WeakHashMap <K , V > = HashMap <K , V >
You can’t perform that action at this time.
0 commit comments