kotlin-compiler: 1.1-20170412.175827-457

This commit is contained in:
Vasily Levchenko
2017-04-13 12:15:42 +03:00
committed by vvlevchenko
parent bd747b54bd
commit eadcd98740
2 changed files with 2 additions and 2 deletions
@@ -84,7 +84,7 @@ internal fun IrExpression.isNullConst() = this is IrConst<*> && this.kind == IrC
fun IrCall.usesDefaultArguments(): Boolean =
this.descriptor.valueParameters.any { this.getValueArgument(it) == null }
fun IrElement.getCompilerMessageLocation(containingFile: IrFile): CompilerMessageLocation {
fun IrElement.getCompilerMessageLocation(containingFile: IrFile): CompilerMessageLocation? {
val sourceRangeInfo = containingFile.fileEntry.getSourceRangeInfo(this.startOffset, this.endOffset)
return CompilerMessageLocation.create(
path = sourceRangeInfo.filePath,