Describe the bug
This seems broken - for single-line try-catch expressions, the setting should probably not apply?
Input file
class Main {
static function main() {
var applicationName = try ProjectUtils.getApplicationFile(FileSystem.fullPath(project.projectXmlPath)) catch (_:Dynamic) project.name;
}
}
Broken output
class Main {
static function main() {
var applicationName = try ProjectUtils.getApplicationFile(FileSystem.fullPath(project.projectXmlPath))
catch (_:Dynamic) project.name;
}
}
Optional: hxformat.json
{
"sameLine": {
"tryCatch": "next"
}
}
Describe the bug
This seems broken - for single-line try-catch expressions, the setting should probably not apply?
Input file
Broken output
Optional: hxformat.json
{ "sameLine": { "tryCatch": "next" } }