IR [minor]: do not assume that ktfile is always accessible
This commit is contained in:
+2
-2
@@ -772,8 +772,8 @@ private class TypeOperatorLowering(private val backendContext: JvmBackendContext
|
|||||||
return startOffset to endOffset
|
return startOffset to endOffset
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun sourceViewFor(declaration: IrDeclaration): CharSequence =
|
private fun sourceViewFor(declaration: IrDeclaration): CharSequence? =
|
||||||
declaration.fileParent.getKtFile()!!.viewProvider.contents
|
declaration.fileParent.getKtFile()?.viewProvider?.contents
|
||||||
|
|
||||||
private val throwTypeCastException: IrSimpleFunctionSymbol =
|
private val throwTypeCastException: IrSimpleFunctionSymbol =
|
||||||
backendContext.ir.symbols.throwTypeCastException
|
backendContext.ir.symbols.throwTypeCastException
|
||||||
|
|||||||
Reference in New Issue
Block a user