Kotlin: Remove a default argument

It was only defaulted in one case, and it's probably clearer to be
explicit.
This commit is contained in:
Ian Lynagh
2022-01-19 18:04:39 +00:00
parent c125c1a698
commit d1a0a9668f
2 changed files with 2 additions and 2 deletions

View File

@@ -89,7 +89,7 @@ open class KotlinFileExtractor(
is IrFile -> return "@\"${element.path};sourcefile\"" // todo: remove copy-pasted code
is IrClass -> return getClassLabel(element, listOf()).classLabel
is IrTypeParameter -> return getTypeParameterLabel(element)
is IrFunction -> return getFunctionLabel(element)
is IrFunction -> return getFunctionLabel(element, null)
is IrValueParameter -> return getValueParameterLabel(element, null)
is IrProperty -> return getPropertyLabel(element)
is IrField -> return getFieldLabel(element)

View File

@@ -634,7 +634,7 @@ class X {
else -> null
}
fun getFunctionLabel(f: IrFunction, classTypeArgsIncludingOuterClasses: List<IrTypeArgument>? = null) : String {
fun getFunctionLabel(f: IrFunction, classTypeArgsIncludingOuterClasses: List<IrTypeArgument>?) : String {
return getFunctionLabel(f, null, classTypeArgsIncludingOuterClasses)
}