Minor, take String instead of Name in IrFunction.addValueParameter
All call sites of this method construct parameters with the given string literal name (and more such call sites are coming in subsequent commits) and it feels like a boilerplate to wrap it into Name each time manually
This commit is contained in:
+3
-3
@@ -113,9 +113,9 @@ inline fun IrFunction.addValueParameter(b: IrValueParameterBuilder.() -> Unit):
|
||||
}
|
||||
}
|
||||
|
||||
fun IrFunction.addValueParameter(name: Name, type: IrType, origin: IrDeclarationOrigin): IrValueParameter =
|
||||
fun IrFunction.addValueParameter(name: String, type: IrType, origin: IrDeclarationOrigin): IrValueParameter =
|
||||
addValueParameter {
|
||||
this.name = name
|
||||
this.name = Name.identifier(name)
|
||||
this.type = type
|
||||
this.origin = origin
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user