haxe-formatter
haxe-formatter copied to clipboard
Questionable OpAdd wrapping
Input file
class Main {
static function main() {
var generatedCodeSlsdjffs = TypeHelper.printFunctionDeclaration(args, ret, context.config.codeGeneration.functions.anonymous) + " ";
}
}
Broken output
class Main {
static function main() {
var generatedCodeSlsdjffs = TypeHelper.printFunctionDeclaration(args, ret, context.config.codeGeneration.functions.anonymous)
+ " ";
}
}
This is even still > 160 characters long after the wrapping, so it's definitely wrapping at the wrong point.
yeah, we will have to play with defaults for a bit, to get a good balance...
although I think in this case maybe wrapping.callParameter
should kick in