Skip to content

Commit 2caf392

Browse files
mcpiromanSpace Team
authored andcommitted
[IR] Minor: Make some checker code public
Required for the next commit. KT-76601
1 parent 3513728 commit 2caf392

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/ScopeStack.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
package org.jetbrains.kotlin.backend.common
77

8-
internal class ScopeStack<E> {
8+
class ScopeStack<E> {
99
private class Scope<E>(val isGlobal: Boolean) {
1010
val values = mutableSetOf<E>()
1111
}

compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/checkers/IrElementChecker.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import kotlin.reflect.KClass
1313
abstract class IrElementChecker<in E : IrElement>(
1414
elementClass: KClass<in E>,
1515
) {
16-
internal abstract fun check(element: E, context: CheckerContext)
16+
abstract fun check(element: E, context: CheckerContext)
1717
}
1818

1919
internal fun <E : IrElement> List<IrElementChecker<E>>.check(element: E, context: CheckerContext) {

compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/checkers/context/CheckerContext.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import org.jetbrains.kotlin.ir.declarations.IrTypeParametersContainer
1818
import org.jetbrains.kotlin.ir.symbols.IrTypeParameterSymbol
1919
import org.jetbrains.kotlin.ir.symbols.IrValueSymbol
2020

21-
internal class CheckerContext(
21+
class CheckerContext(
2222
val irBuiltIns: IrBuiltIns,
2323
val checkInlineFunctionUseSites: InlineFunctionUseSiteChecker?,
2424
val file: IrFile,

compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/checkers/context/ContextUpdater.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import org.jetbrains.kotlin.ir.IrElement
1010
/**
1111
* Manages temporary updates to a [CheckerContext] during the processing of an [IrElement].
1212
*/
13-
internal interface ContextUpdater {
13+
interface ContextUpdater {
1414
/**
1515
* Temporarily updates the [context] based on the given [element], executes [block] within the updated context,
1616
* and then restores the context to its original state.

0 commit comments

Comments
 (0)