Minor. Reformat
This commit is contained in:
@@ -53,22 +53,25 @@ class JvmBackendContext(
|
|||||||
}
|
}
|
||||||
|
|
||||||
override val ir: Ir<CommonBackendContext> = object : Ir<CommonBackendContext>(this, irModuleFragment) {
|
override val ir: Ir<CommonBackendContext> = object : Ir<CommonBackendContext>(this, irModuleFragment) {
|
||||||
override val symbols: Symbols<CommonBackendContext> = object: Symbols<CommonBackendContext>(this@JvmBackendContext, symbolTable) {
|
override val symbols: Symbols<CommonBackendContext> = object : Symbols<CommonBackendContext>(this@JvmBackendContext, symbolTable) {
|
||||||
|
|
||||||
override val areEqual
|
override val areEqual
|
||||||
get () = symbolTable.referenceSimpleFunction(context.getInternalFunctions("areEqual").single())
|
get () = symbolTable.referenceSimpleFunction(context.getInternalFunctions("areEqual").single())
|
||||||
|
|
||||||
override val ThrowNullPointerException
|
override val ThrowNullPointerException
|
||||||
get () = symbolTable.referenceSimpleFunction(
|
get () = symbolTable.referenceSimpleFunction(
|
||||||
context.getInternalFunctions("ThrowNullPointerException").single())
|
context.getInternalFunctions("ThrowNullPointerException").single()
|
||||||
|
)
|
||||||
|
|
||||||
override val ThrowNoWhenBranchMatchedException
|
override val ThrowNoWhenBranchMatchedException
|
||||||
get () = symbolTable.referenceSimpleFunction(
|
get () = symbolTable.referenceSimpleFunction(
|
||||||
context.getInternalFunctions("ThrowNoWhenBranchMatchedException").single())
|
context.getInternalFunctions("ThrowNoWhenBranchMatchedException").single()
|
||||||
|
)
|
||||||
|
|
||||||
override val ThrowTypeCastException
|
override val ThrowTypeCastException
|
||||||
get () = symbolTable.referenceSimpleFunction(
|
get () = symbolTable.referenceSimpleFunction(
|
||||||
context.getInternalFunctions("ThrowTypeCastException").single())
|
context.getInternalFunctions("ThrowTypeCastException").single()
|
||||||
|
)
|
||||||
|
|
||||||
override val ThrowUninitializedPropertyAccessException
|
override val ThrowUninitializedPropertyAccessException
|
||||||
get () = symbolTable.referenceSimpleFunction(
|
get () = symbolTable.referenceSimpleFunction(
|
||||||
@@ -110,8 +113,10 @@ class JvmBackendContext(
|
|||||||
override fun getInternalFunctions(name: String): List<FunctionDescriptor> {
|
override fun getInternalFunctions(name: String): List<FunctionDescriptor> {
|
||||||
return when (name) {
|
return when (name) {
|
||||||
"ThrowUninitializedPropertyAccessException" ->
|
"ThrowUninitializedPropertyAccessException" ->
|
||||||
getInternalClass("Intrinsics").staticScope.
|
getInternalClass("Intrinsics").staticScope.getContributedFunctions(
|
||||||
getContributedFunctions(Name.identifier("throwUninitializedPropertyAccessException"), NoLookupLocation.FROM_BACKEND).toList()
|
Name.identifier("throwUninitializedPropertyAccessException"),
|
||||||
|
NoLookupLocation.FROM_BACKEND
|
||||||
|
).toList()
|
||||||
else -> TODO(name)
|
else -> TODO(name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user